Пример #1
0
 public override void PlayerTurnStart(Minion _me)
 {
     base.PlayerTurnStart(_me);
     duration--;
     if (duration == 0)
     {
         _me.RemoveBuff(this);
     }
 }
Пример #2
0
 public override MinionMovePositionResult MinionMovePosition(Minion _me, MinionMovePositionResult _result)
 {
     base.MinionMovePosition(_me, _result);
     if (_result.target.MinionSlotPosition == MinionSlotPosition.Backward)
     {
         _me.RemoveBuff(this);
     }
     return _result;
 }
Пример #3
0
 public override void PlayerTurnEnd(Minion _me)
 {
     base.PlayerTurnEnd(_me);
     --duration;
     if (duration <= 0)
     {
         _me.RemoveBuff(this);
     }
 }
Пример #4
0
 public override void PlayerTurnStart(Minion _me)
 {
     base.PlayerTurnStart(_me);
     duration--;
     _me.RealHurt(new HurtVO(hurtHealth, 0, 0));
     if (duration == 0)
     {
         _me.RemoveBuff(this);
     }
 }
Пример #5
0
 public override void PlayerTurnStart(Minion _me)
 {
     base.PlayerTurnStart(_me);
     duration--;
     if (duration == 0)
     {
         if (_me.Health <= health)
         {
             _me.Heal(health - _me.Health + 1);
         }
         _me.RemoveBuff(this);
         
     }
 }
Пример #6
0
    public override void PlayerTurnStart(Minion _me)
    {
        base.PlayerTurnStart(_me);
        duration--;
        if(duration == 0)
        {
            List<Minion> listOfMinions = MinionController.Instance.GetMinionsByPlayerType(_me.PlayerType);
            foreach (Minion minion in listOfMinions)
            {
                if (minion != _me)
                {
                    minion.RemoveBuff(BuffName.StateOfDeathMinion);
                }
            }
            _me.RemoveBuff(this);
        }
        else
        {

        }
    }
Пример #7
0
 public override void PlayerTurnStart(Minion _me)
 {
     base.PlayerTurnStart(_me);
     _me.RemoveBuff(this);
 }