feat(Core/Player): detect Spanish clients (#5186)

This commit is contained in:
KiK0
2021-04-13 08:57:34 -07:00
committed by GitHub
parent 1051948c37
commit 92668be4f3

View File

@@ -1105,6 +1105,11 @@ public:
SetFloatValue(UNIT_FIELD_COMBATREACH, scale * DEFAULT_COMBAT_REACH);
}
[[nodiscard]] bool hasSpanishClient()
{
return GetSession()->GetSessionDbLocaleIndex() == LOCALE_esES || GetSession()->GetSessionDbLocaleIndex() == LOCALE_esMX;
}
bool TeleportTo(uint32 mapid, float x, float y, float z, float orientation, uint32 options = 0, Unit* target = nullptr);
bool TeleportTo(WorldLocation const& loc, uint32 options = 0, Unit* target = nullptr)
{