From 1aff899f5b08b4cc9230abd13af17b06f1e7fe79 Mon Sep 17 00:00:00 2001 From: alexvins Date: Mon, 17 Mar 2014 14:39:28 +0000 Subject: [PATCH] Hotfix 2 * fix loading range attribute * fix config for massive spells --- config/spell_info.json | 7 +++++-- lib/CSpellHandler.cpp | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/spell_info.json b/config/spell_info.json index c2cb46e8e..d18085b74 100644 --- a/config/spell_info.json +++ b/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":{ diff --git a/lib/CSpellHandler.cpp b/lib/CSpellHandler.cpp index b148b5dbf..a4acd8781 100644 --- a/lib/CSpellHandler.cpp +++ b/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()) {