Core/AI: Remove unnecessary parameter from DoZoneInCombat
Port From (https://github.com/TrinityCore/TrinityCore/commit/5d48e8db7d0175af807e77214583058bf6e9c790)
This commit is contained in:
@@ -58,7 +58,7 @@ namespace Game.AI
|
|||||||
Global.CreatureTextMgr.SendChat(me, (byte)id, whisperTarget);
|
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)
|
if (!creature)
|
||||||
creature = me;
|
creature = me;
|
||||||
|
|||||||
@@ -668,14 +668,14 @@ namespace Game.AI
|
|||||||
|
|
||||||
public void Summon(Creature summon) { Add(summon.GetGUID()); }
|
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)
|
foreach (var id in this)
|
||||||
{
|
{
|
||||||
Creature summon = ObjectAccessor.GetCreature(_me, id);
|
Creature summon = ObjectAccessor.GetCreature(_me, id);
|
||||||
if (summon && summon.IsAIEnabled && (entry == 0 || summon.GetEntry() == entry))
|
if (summon && summon.IsAIEnabled && (entry == 0 || summon.GetEntry() == entry))
|
||||||
{
|
{
|
||||||
summon.GetAI().DoZoneInCombat(null, maxRangeToNearestTarget);
|
summon.GetAI().DoZoneInCombat(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user