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:
hondacrx
2022-01-06 00:00:04 -05:00
parent 93389f32e2
commit 3be49e6e3a
+5 -3
View File
@@ -233,12 +233,14 @@ namespace Game.AI
AllCreaturesOfEntryInRange check = new(me, entry, maxSearchRange);
CreatureListSearcher searcher = new(me, creatures, check);
// TODO: FIX THIS
//if (!samePhase)
// searcher.i_phaseMask = PHASEMASK_ANYWHERE;
if (!samePhase)
PhasingHandler.SetAlwaysVisible(me, true, false);
Cell.VisitGridObjects(me, searcher, maxSearchRange);
if (!samePhase)
PhasingHandler.SetAlwaysVisible(me, false, false);
foreach (Creature creature in creatures)
ForceCombatStop(creature, reset);
}