protected override float GetMagicalDamage(CAbility ability, CHero hero, float magicalDamageReduction, float magicalCurrentHealth, bool canHitActive) { var mysticFlare = (ability as MysticFlare); if (mysticFlare != null) { if (!canHitActive) { return(DamageHelpers.GetSpellDamage(mysticFlare.GetTotalDamage(hero), magicalDamageReduction - 1)); } return(0); } return(ability.GetDamage(hero, magicalDamageReduction - 1, magicalCurrentHealth)); }
protected virtual float GetMagicalDamage(CAbility ability, Hero hero, float magicalDamageReduction, float magicalCurrentHealth, bool canHitActive) { return(ability.GetDamage(hero, magicalDamageReduction - 1, magicalCurrentHealth)); }