summaryrefslogtreecommitdiff
path: root/src/gui/windows/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-23 03:36:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-23 03:36:36 +0300
commitdb3c14fe29d0ebd10e5f5cfa843d5d44660ab0aa (patch)
tree48df43cbea8483ad5d0475f98713ef8059dce653 /src/gui/windows/skilldialog.cpp
parent871f05609ec03cad93773112c3324ba7b0488388 (diff)
downloadmv-db3c14fe29d0ebd10e5f5cfa843d5d44660ab0aa.tar.gz
mv-db3c14fe29d0ebd10e5f5cfa843d5d44660ab0aa.tar.bz2
mv-db3c14fe29d0ebd10e5f5cfa843d5d44660ab0aa.tar.xz
mv-db3c14fe29d0ebd10e5f5cfa843d5d44660ab0aa.zip
Add separate attribute for ground skill effect: castingGroundEffectId
Diffstat (limited to 'src/gui/windows/skilldialog.cpp')
-rw-r--r--src/gui/windows/skilldialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp
index 02e67408d..562b8471d 100644
--- a/src/gui/windows/skilldialog.cpp
+++ b/src/gui/windows/skilldialog.cpp
@@ -468,6 +468,8 @@ void SkillDialog::loadSkillData(XmlNodePtr node,
node, "srcEffectId", -1);
data->dstEffectId = XML::getProperty(
node, "dstEffectId", -1);
+ data->castingGroundEffectId = XML::getProperty(
+ node, "castingGroundEffectId", -1);
skill->addData(level, data);
}
@@ -723,7 +725,7 @@ void SkillDialog::playCastingDstTileEffect(const int id,
SkillData *const data = getSkillDataByLevel(id, level);
if (!data)
return;
- effectManager->triggerDefault(data->castingDstEffectId,
+ effectManager->triggerDefault(data->castingGroundEffectId,
x * 32,
y * 32,
cur_time + delay / 1000, // end time in seconds