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);
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user