Example #1
0
        public void Execute(Effect.actionCall turnPos)
        {
            if (CallTime.HasFlag(turnPos))
            {
                spell.Execute(null, null);

                Duration--;
            }
        }
Example #2
0
 public void EffectsTick(Effect.actionCall OnStart)
 {
     for (int i = unitEffects.Count - 1; i >= 0; i--)
     {
         Effect effect = unitEffects[i];
         if (effect.ActionCall == OnStart)
         {
             if (effect.Execute(myUnit))
             {
                 unitEffects.Remove(effect);
             }
         }
     }
 }
Example #3
0
        public void NextTurnRepose(Effect.actionCall start)
        {
            if (this == null)
            {
                return;
            }

            if (logic.UnitAction <= 0)
            {
                logic.UnitAction += (logic.UnitAction < unitObject.ActionsPerTurn) ? unitObject.ActionsPerTurn : 0;
            }
            EffectsTick(start);
            if (this == null)
            {
                return;
            }
            SpellsReload();
            logic.CallLinkedSpells();
        }
Example #4
0
 public void EffectsTick(Effect.actionCall start)
 {
     logic.EffectsTick(start);
 }