|
|
@ -494,8 +494,11 @@ namespace MWMechanics
|
|
|
|
effectTick(creatureStats, ptr, it->first, it->second.getMagnitude() * duration);
|
|
|
|
effectTick(creatureStats, ptr, it->first, it->second.getMagnitude() * duration);
|
|
|
|
|
|
|
|
|
|
|
|
// instant effects are already applied on spell impact in spellcasting.cpp, but may also come from permanent abilities
|
|
|
|
// instant effects are already applied on spell impact in spellcasting.cpp, but may also come from permanent abilities
|
|
|
|
CastSpell cast(ptr, ptr);
|
|
|
|
if (it->second.getMagnitude() > 0)
|
|
|
|
cast.applyInstantEffect(ptr, ptr, it->first, it->second.getMagnitude());
|
|
|
|
{
|
|
|
|
|
|
|
|
CastSpell cast(ptr, ptr);
|
|
|
|
|
|
|
|
cast.applyInstantEffect(ptr, ptr, it->first, it->second.getMagnitude());
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|