mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-01 01:53:47 +00:00
feat(Core/Player): detect Spanish clients (#5186)
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user