Core/AI: Remove unnecessary parameter from DoZoneInCombat

Port From (https://github.com/TrinityCore/TrinityCore/commit/5d48e8db7d0175af807e77214583058bf6e9c790)
This commit is contained in:
hondacrx
2021-10-30 20:08:11 -04:00
parent fc68f3e528
commit 1578935f08
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ namespace Game.AI
Global.CreatureTextMgr.SendChat(me, (byte)id, whisperTarget);
}
public void DoZoneInCombat(Creature creature = null, float maxRangeToNearestTarget = 250.0f)
public void DoZoneInCombat(Creature creature = null)
{
if (!creature)
creature = me;
+2 -2
View File
@@ -668,14 +668,14 @@ namespace Game.AI
public void Summon(Creature summon) { Add(summon.GetGUID()); }
public void DoZoneInCombat(uint entry = 0, float maxRangeToNearestTarget = 250.0f)
public void DoZoneInCombat(uint entry = 0)
{
foreach (var id in this)
{
Creature summon = ObjectAccessor.GetCreature(_me, id);
if (summon && summon.IsAIEnabled && (entry == 0 || summon.GetEntry() == entry))
{
summon.GetAI().DoZoneInCombat(null, maxRangeToNearestTarget);
summon.GetAI().DoZoneInCombat(null);
}
}
}