public void AddModifier(Modifier modifier, Unit9 modifierOwner) { if (modifier.Name == "modifier_rubick_telekinesis") { var obstacle = new AreaOfEffectModifierObstacle(this, modifierOwner.Position, modifier) { Counters = this.landCounters.ToArray(), Blinks = this.landBlinks.ToArray() }; this.Pathfinder.AddObstacle(obstacle); } else { var obstacle = new ModifierAllyObstacle(this, modifier, modifierOwner); this.Pathfinder.AddObstacle(obstacle); } }
public void AddModifierObstacle(Modifier modifier, Unit sender) { var obstacle = new AreaOfEffectModifierObstacle(this, sender.Position, modifier); this.Pathfinder.AddObstacle(obstacle); }