Esempio n. 1
0
            private void ExplodeOnImpact()
            {
                EffectLoader.GetAvatarSkillHitEffect(AvatarAttack.DragonBreathOfFire).
                FireBurstAtRelativePosition(targetPosition);
                var creepsWithinRange = GetCreepsWithinRange(Position.GetVector2D(), BreathOfFireRange);

                foreach (var creep in creepsWithinRange)
                {
                    creep.ReceiveAttack(TowerType.Fire, BreathOfFireDamage);
                }
                Dispose();
            }
Esempio n. 2
0
        private static void PerformAuraCannonAttack(Vector2D position)
        {
            new RayAttack(position);
            Vector2D     positionUp = position - Vector2D.UnitY;
            List <Creep> creeps     = EntitiesRunner.Current.GetEntitiesOfType <Creep>();

            foreach (var creep in creeps)
            {
                if (DistanceToLineSquared(creep, position, positionUp) <= AuraCannonRangeSquared)
                {
                    creep.ReceiveAttack(TowerType.Fire, AuraCannonDamage);
                    EffectLoader.GetAvatarSkillHitEffect(AvatarAttack.DragonAuraCannon).
                    FireBurstAtRelativePosition(creep.Position);
                }
            }
        }