mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-07 13:08:09 +02:00
Fix SPELL_DAMAGE_REDUCTION calculation.
This commit is contained in:
parent
9e8b09d747
commit
3da27243c8
@ -127,8 +127,7 @@ ui32 CSpell::calculateDamage(const CGHeroInstance * caster, const CStack * affec
|
|||||||
}
|
}
|
||||||
|
|
||||||
//general spell dmg reduction
|
//general spell dmg reduction
|
||||||
//FIXME?
|
if(affectedCreature->hasBonusOfType(Bonus::SPELL_DAMAGE_REDUCTION, -1))
|
||||||
if(air && affectedCreature->hasBonusOfType(Bonus::SPELL_DAMAGE_REDUCTION, -1))
|
|
||||||
{
|
{
|
||||||
ret *= affectedCreature->valOfBonuses(Bonus::SPELL_DAMAGE_REDUCTION, -1);
|
ret *= affectedCreature->valOfBonuses(Bonus::SPELL_DAMAGE_REDUCTION, -1);
|
||||||
ret /= 100;
|
ret /= 100;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user