Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 protected virtual float GetMagicalDamage(CAbility ability, Hero hero, float magicalDamageReduction, float magicalCurrentHealth, bool canHitActive)
 {
     return(ability.GetDamage(hero, magicalDamageReduction - 1, magicalCurrentHealth));
 }