Selaa lähdekoodia

documented NEGATIVE_EFFECTS_IMMUNITY, fixed subtype loading

Ivan Savenko 2 vuotta sitten
vanhempi
sitoutus
1e0ea5f1f0
2 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  1. 7 1
      docs/modders/Bonus/Bonus_Types.md
  2. 1 0
      lib/JsonNode.cpp

+ 7 - 1
docs/modders/Bonus/Bonus_Types.md

@@ -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

+ 1 - 0
lib/JsonNode.cpp

@@ -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)
 			{