diff options
author | Shauren <shauren.trinity@gmail.com> | 2023-03-11 13:37:03 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2023-03-11 13:37:03 +0100 |
commit | 080bf4c5650d54694819f6aaf7a12f3cbc623ef4 (patch) | |
tree | 27531c22a6cb466a3d59424ac088f45921976737 /src/server/game/AI/CreatureAI.cpp | |
parent | 4300c3edd3b2fe4c0f5a01807271e663b6750ebb (diff) |
Core/Scripts: Make CreatureAI::DoZoneInCombat overload accepting a different creature static
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r-- | src/server/game/AI/CreatureAI.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp index 0ae258856a6..3f2aae8d2de 100644 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -78,11 +78,8 @@ void CreatureAI::OnCharmed(bool isNew) UnitAI::OnCharmed(isNew); } -void CreatureAI::DoZoneInCombat(Creature* creature /*= nullptr*/) +void CreatureAI::DoZoneInCombat(Creature* creature) { - if (!creature) - creature = me; - Map* map = creature->GetMap(); if (!map->IsDungeon()) // use IsDungeon instead of Instanceable, in case battlegrounds will be instantiated { |