Cherry pick from https://gitlab.com/trinitycore/TrinityCore_434/commit/3c2da4159e032301b27ac3a3aa14f59d302a1215
779d3b2368