Exemple #1
0
        protected override void AddObstacle()
        {
            var obstacle = new TargetableObstacle(this)
            {
                EndCastTime     = this.EndCastTime,
                EndObstacleTime = this.EndCastTime + this.Ability.ActivationDelay
            };

            this.Pathfinder.AddObstacle(obstacle);
        }
Exemple #2
0
        protected override void AddObstacle()
        {
            var obstacle = new LinearAreaOfEffectObstacle(this, this.Owner.Position)
            {
                EndCastTime     = this.EndCastTime,
                EndObstacleTime = this.EndCastTime + this.Ability.ActivationDelay,
            };

            this.Pathfinder.AddObstacle(obstacle);

            var targetableObstacle = new TargetableObstacle(this)
            {
                Id              = obstacle.Id,
                EndCastTime     = this.EndCastTime,
                EndObstacleTime = this.EndCastTime,
                Counters        = this.targetCounters.ToArray()
            };

            this.Pathfinder.AddObstacle(targetableObstacle);
        }