Ejemplo n.º 1
0
        protected override void OnEnd()
        {
            base.OnEnd();

            if (ElectroDashUI != null)
            {
                User.BManager.battleUIManager.RemoveUIElement(ElectroDashUI);
                ElectroDashUI = null;
            }
        }
Ejemplo n.º 2
0
        protected override void OnStart()
        {
            base.OnStart();

            if (Action.CommandEnabled == true && Action.DrawActionCommandInfo == true)
            {
                ElectroDashUI = new GulpActionCommandUI(actionCommand as GulpCommand);
                User.BManager.battleUIManager.AddUIElement(ElectroDashUI);
            }
        }
Ejemplo n.º 3
0
        protected override void OnEnd()
        {
            base.OnEnd();

            BehindEntity?.StopTarget();

            if (GulpUI != null)
            {
                User.BManager.battleUIManager.RemoveUIElement(GulpUI);
                GulpUI = null;
            }
        }
Ejemplo n.º 4
0
        protected override void OnStart()
        {
            base.OnStart();

            //Check if there is a BattleEntity behind the one eaten and if it can be hit by this move
            List <BattleEntity> behindEntities = new List <BattleEntity>();

            User.BManager.GetEntitiesBehind(behindEntities, EntitiesAffected[0]);
            BattleManagerUtils.FilterEntitiesByHeights(behindEntities, Action.MoveProperties.HeightsAffected);

            //Store the reference to the behind entity and tell it it's being targeted
            if (behindEntities.Count > 0)
            {
                BehindEntity = behindEntities[0];
                BehindEntity.TargetForMove(User);
            }

            if (Action.CommandEnabled == true && Action.DrawActionCommandInfo == true)
            {
                GulpUI = new GulpActionCommandUI(actionCommand as GulpCommand);
                User.BManager.battleUIManager.AddUIElement(GulpUI);
            }
        }