1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

documented NEGATIVE_EFFECTS_IMMUNITY, fixed subtype loading

This commit is contained in:
Ivan Savenko 2023-10-28 17:56:11 +03:00
parent 1459006916
commit 1e0ea5f1f0
2 changed files with 8 additions and 1 deletions

View File

@ -795,7 +795,7 @@ Affected unit is permanently enchanted with a spell, that is cast again every tu
Affected unit is immune to all spell with level below or equal to value of this bonus
- val: level to which this unit is immune to
- val: level up to which this unit is immune to
TODO: additional info?
@ -897,6 +897,12 @@ Affected unit will never retaliate to an attack (Blind, Paralyze)
# Others
### NEGATIVE_EFFECTS_IMMUNITY
Affected unit is immune to all negative spells of specified spell school
- subtype: affected spell school
### BLOCK_MAGIC_ABOVE
Blocks casting spells of the level above specified one in battles affected by this bonus

View File

@ -446,6 +446,7 @@ static void loadBonusSubtype(BonusSubtypeID & subtype, BonusType type, const Jso
case BonusType::SPELLS_OF_SCHOOL:
case BonusType::SPELL_DAMAGE_REDUCTION:
case BonusType::SPELL_SCHOOL_IMMUNITY:
case BonusType::NEGATIVE_EFFECTS_IMMUNITY:
{
VLC->identifiers()->requestIdentifier( "spellSchool", node, [&subtype](int32_t identifier)
{