Core/Refactor: Part 2

This commit is contained in:
hondacrx
2018-05-07 22:07:35 -04:00
parent 216db1c23a
commit 9b40067017
93 changed files with 321 additions and 388 deletions
+2 -5
View File
@@ -440,10 +440,7 @@ namespace Game.AI
if (instance != null)
SetBoundary(instance.GetBossBoundary(bossId));
_scheduler.SetValidator(() =>
{
return !me.HasUnitState(UnitState.Casting);
});
_scheduler.SetValidator(() => !me.HasUnitState(UnitState.Casting));
}
public void _Reset()
@@ -699,7 +696,7 @@ namespace Game.AI
while (!this.Empty())
{
Creature summon = ObjectAccessor.GetCreature(me, this.FirstOrDefault());
this.RemoveAt(0);
RemoveAt(0);
if (summon)
summon.DespawnOrUnsummon();
}