mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
Fixed #180. Minor tweaks.
This commit is contained in:
@ -1789,6 +1789,9 @@ SpellCasting::ESpellCastProblem BattleInfo::battleIsImmune(const CGHeroInstance
|
||||
if (spell->positiveness ==1 && subject->hasBonusOfType(Bonus::RECEPTIVE)) //accept all positive spells
|
||||
return SpellCasting::OK;
|
||||
|
||||
if ((spell->id == 41 || spell->id == 42) && subject->hasBonusOfType(Bonus::UNDEAD)) //undeads are immune to bless & curse
|
||||
return SpellCasting::STACK_IMMUNE_TO_SPELL; //TODO: more general logic for new spells?
|
||||
|
||||
if (spell->fire)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user