Răsfoiți Sursa

Hotfix 2
* fix loading range attribute
* fix config for massive spells

alexvins 11 ani în urmă
părinte
comite
1aff899f5b
2 a modificat fișierele cu 6 adăugiri și 2 ștergeri
  1. 5 2
      config/spell_info.json
  2. 1 0
      lib/CSpellHandler.cpp

+ 5 - 2
config/spell_info.json

@@ -664,6 +664,7 @@
 	},
 	"deathRipple" : {
 		"index" : 24,
+		"targetType" : "CREATURE",
 		"anim" : 8,
 		"sounds": {
 			"cast": "DEATHRIP"
@@ -699,6 +700,7 @@
 	},
 	"destroyUndead" : {
 		"index" : 25,
+		"targetType" : "CREATURE",
 		"anim" : 29,
 		"sounds": {
 			"cast": "COLDRING"
@@ -735,6 +737,7 @@
 	},
 	"armageddon" : {
 		"index" : 26,
+		"targetType" : "CREATURE",
 		"anim" : 12,
 		"sounds": {
 			"cast": "ARMGEDN"
@@ -884,8 +887,8 @@
 		"sounds": {
 			"cast": "FIRESHIE"
 		},
-		// It looks that fireshield has two separate sounds
-		//			"soundfile":"FIRESHLD.wav"
+		// It looks that fireshield has two separate sounds
+		//			"soundfile":"FIRESHLD.wav"
 		//		
 		"levels" : {
 			"none":{

+ 1 - 0
lib/CSpellHandler.cpp

@@ -817,6 +817,7 @@ CSpell * CSpellHandler::loadFromJson(const JsonNode& json)
 		levelObject.power       = levelPower;
 		levelObject.AIValue     = levelNode["aiValue"].Float();
 		levelObject.smartTarget = levelNode["targetModifier"]["smart"].Bool();
+		levelObject.range       = levelNode["range"].String();
 		
 		for(const auto & elem : levelNode["effects"].Struct())
 		{