Core/Scripts: Add missing implementation for samePhase argument of ScriptedAI::ForceCombatStopForCreatureEntry
Port From (https://github.com/TrinityCore/TrinityCore/commit/68a25f5e9bdd48330e48133961ca22183130e424)
This commit is contained in:
@@ -233,12 +233,14 @@ namespace Game.AI
|
|||||||
AllCreaturesOfEntryInRange check = new(me, entry, maxSearchRange);
|
AllCreaturesOfEntryInRange check = new(me, entry, maxSearchRange);
|
||||||
CreatureListSearcher searcher = new(me, creatures, check);
|
CreatureListSearcher searcher = new(me, creatures, check);
|
||||||
|
|
||||||
// TODO: FIX THIS
|
if (!samePhase)
|
||||||
//if (!samePhase)
|
PhasingHandler.SetAlwaysVisible(me, true, false);
|
||||||
// searcher.i_phaseMask = PHASEMASK_ANYWHERE;
|
|
||||||
|
|
||||||
Cell.VisitGridObjects(me, searcher, maxSearchRange);
|
Cell.VisitGridObjects(me, searcher, maxSearchRange);
|
||||||
|
|
||||||
|
if (!samePhase)
|
||||||
|
PhasingHandler.SetAlwaysVisible(me, false, false);
|
||||||
|
|
||||||
foreach (Creature creature in creatures)
|
foreach (Creature creature in creatures)
|
||||||
ForceCombatStop(creature, reset);
|
ForceCombatStop(creature, reset);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user