Ejemplo n.º 1
0
        /// <summary>
        /// after block is accounted.
        /// bool represents if they are still alive.
        /// For use by essence of steel status too.
        /// </summary>
        public bool ApplyDamage(int amount, EffectSet ef, CardInstance ci, List <string> history)
        {
            HP -= amount;
            //this is for any damage type.
            TakeDamage?.Invoke(ef, amount, ci);
            history.Add($"{Name} took {amount} dmg");

            return(true);
        }
Ejemplo n.º 2
0
 public void PlayerDamage()
 {
     TakeDamage?.Invoke();
 }
Ejemplo n.º 3
0
 public static void TakeDamageAction(float amount)
 {
     TakeDamage?.Invoke(amount);
 }