Cherry pick from https://gitlab.com/trinitycore/TrinityCore_434/commit/7e627b020c8a55906994de7e1d03d4f7e5f0eb8a
779d3b2368
hotfixes