Пример #1
0
 public override void OnTurnEnd(CombatChar combatChar)
 {
     combatChar.TakeDamage(Damage, "None");
     Duration -= 1;
     if (Duration <= 0)
     {
         expired = true;
     }
 }
Пример #2
0
        public override void OnTurnEnd(CombatChar combatChar)
        {
            _nextDamage -= 1;
            GD.Print($"NEXT FIRE DAMAGE : {_nextDamage}");

            if (_nextDamage <= 0)
            {
                GD.Print($"APPLY FIRE DAMAGE TO: {combatChar.Name}");
                combatChar.TakeDamage(Damage, "Fire");
                _nextDamage = Delay + 1;
            }

            Duration -= 1;
            if (Duration <= 0)
            {
                expired = true;
            }
        }