Exemplo n.º 1
0
        protected override void Destroy()
        {
            base.Destroy();

            List <Projectile> pjList = Mobile.ProjectileList.Except(Mobile.UnusedProjectile).ToList();

            if (pjList.Count() == 0)
            {
                OnFinalizeExecutionAction?.Invoke();
            }
        }
Exemplo n.º 2
0
        protected override void Destroy()
        {
            if (explosions >= Parameter.ProjectileTricoSSNumberOfExplosions)
            {
                base.Destroy();

                List <Projectile> pjList = Mobile.ProjectileList.Except(Mobile.UnusedProjectile).ToList();

                if (pjList.Count() == 0)
                {
                    OnFinalizeExecutionAction?.Invoke();
                }
            }
        }
Exemplo n.º 3
0
        protected override void Destroy()
        {
            base.Destroy();

            List <Projectile> pjList = Mobile.ProjectileList.Except(Mobile.UnusedProjectile).ToList();

            if (pjList.Count() == 0)
            {
                OnFinalizeExecutionAction?.Invoke();
            }
            else if (GameScene.Camera.TrackedObject == this)
            {
                GameScene.Camera.TrackObject(pjList.First());
            }
        }
Exemplo n.º 4
0
        protected override void Destroy()
        {
            base.Destroy();

            //Destroy the trace
            SpecialEffectHandler.Remove(swordTrace);

            //If this shot is the last one the satellite should reappear
            if (Mobile.ProjectileList.Except(Mobile.UnusedProjectile).Count() == 0)
            {
                OnFinalizeExecutionAction?.Invoke();

                //Show element
                if (baseShotType != ShotType.SS)
                {
                    SpecialEffectBuilder.TeleportFlame2(((Knight)Mobile).Satellite.Flipbook.Position, 0.5f);
                }

                ((Knight)Mobile).Satellite.Flipbook.ShowElement();
            }
        }
Exemplo n.º 5
0
 protected override void OutofboundsDestroy()
 {
     OnFinalizeExecutionAction?.Invoke();
     Destroy();
 }