Core/Player: add helper methods GetNativeGender/SetNativeGender/SetGender
Port From (https://github.com/TrinityCore/TrinityCore/commit/27886c7f5d6cfc221ea67aab210f96859d725e05)
This commit is contained in:
@@ -914,7 +914,7 @@ namespace Scripts.World.GameObjects
|
||||
Creature target = ScriptedAI.GetClosestCreatureWithEntry(player, CreatureIds.OuthouseBunny, 3.0f);
|
||||
if (target)
|
||||
{
|
||||
target.GetAI().SetData(1, (uint)player.GetGender());
|
||||
target.GetAI().SetData(1, (uint)player.GetNativeGender());
|
||||
me.CastSpell(target, SpellIds.IndisposedIii);
|
||||
}
|
||||
me.CastSpell(player, SpellIds.Indisposed);
|
||||
|
||||
Reference in New Issue
Block a user