Exemple #1
0
 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);
     }
 }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
        public override void AddProjectile(TrackingProjectile projectile, Unit9 target)
        {
            var projectileObstacle = new ProjectileObstacle(this, projectile, target);

            this.Pathfinder.AddObstacle(projectileObstacle);
        }