private void OnHealing(BasePlayer healer, IDamageableEntity target, int healAmount, out bool shouldAbort) { shouldAbort = false; if (healer == this.Owner) { shouldAbort = true; // Instead, do damage! target.TakeDamage(healAmount); } }
public override void Activate(IDamageableEntity target = null, CardEffect cardEffect = CardEffect.NONE) { if (target == null) { throw new ArgumentNullException("Fireball must be cast with target in mind"); } // Deal damage to the target var damageToDeal = MAX_SPELL_POWER + this.BonusSpellPower; target.TakeDamage(damageToDeal); }
public void Battlecry(IDamageableEntity subTarget) { subTarget.TakeDamage(BATTLECRY_DAMAGE); }