1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

CSpell: !isMagical() -> no sorcery and no generic spell dmg reduction

Other bonus are still applied.
This commit is contained in:
Konstantin
2023-03-21 12:24:48 +03:00
parent a639bd2606
commit 3bbff0588d
2 changed files with 5 additions and 3 deletions

View File

@@ -403,8 +403,8 @@ int64_t CSpell::adjustRawDamage(const spells::Caster * caster, const battle::Uni
CSelector selector = Selector::type()(Bonus::SPELL_DAMAGE_REDUCTION).And(Selector::subtype()(-1));
//general spell dmg reduction
if(bearer->hasBonus(selector))
//general spell dmg reduction, works only on magical effects
if(bearer->hasBonus(selector) && isMagical())
{
ret *= 100 - bearer->valOfBonuses(selector);
ret /= 100;