Ref https://github.com/TrinityCore/TrinityCore/pull/20709 (cherry picked from commit afa891d04d90189c9eeef49b4fd00f95936c540d)
Ref https://github.com/TrinityCore/TrinityCore/pull/20709 (cherry picked from commit afa891d04d90189c9eeef49b4fd00f95936c540d)