public virtual void AddProjectile(TrackingProjectile projectile, Unit9 target) { if (this.TargetableObstacle != null && this.EndCastTime + 0.5f > GameManager.RawGameTime) { this.TargetableObstacle.AddProjectile(projectile, target); } else { var projectileObstacle = new ProjectileObstacle(this, projectile, target); this.Pathfinder.AddObstacle(projectileObstacle); } }
public override void AddProjectile(TrackingProjectile projectile, Unit9 target) { if (this.targetableObstacle != null && this.EndCastTime + 0.5f > GameManager.RawGameTime) { this.targetableObstacle.AddProjectile(projectile, target); this.stormHammerAoeObstacle.AddProjectile(projectile, target); } else { var projectileObstacle = new ProjectileObstacle(this, projectile, target); this.Pathfinder.AddObstacle(projectileObstacle); var aoeObstacle = new StormHammerAoeObstacle(this, projectile, target); this.Pathfinder.AddObstacle(aoeObstacle); } }
public override void AddProjectile(TrackingProjectile projectile, Unit9 target) { var projectileObstacle = new ProjectileObstacle(this, projectile, target); this.Pathfinder.AddObstacle(projectileObstacle); }