summaryrefslogtreecommitdiff
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
parent871f05609ec03cad93773112c3324ba7b0488388 (diff)
downloadmanaplus-db3c14fe29d0ebd10e5f5cfa843d5d44660ab0aa.tar.gz
manaplus-db3c14fe29d0ebd10e5f5cfa843d5d44660ab0aa.tar.bz2
manaplus-db3c14fe29d0ebd10e5f5cfa843d5d44660ab0aa.tar.xz
manaplus-db3c14fe29d0ebd10e5f5cfa843d5d44660ab0aa.zip
Add separate attribute for ground skill effect: castingGroundEffectId
-rw-r--r--src/gui/windows/skilldialog.cpp4
-rw-r--r--src/resources/skill/skilldata.cpp1
-rw-r--r--src/resources/skill/skilldata.h1
3 files changed, 5 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
diff --git a/src/resources/skill/skilldata.cpp b/src/resources/skill/skilldata.cpp
index 74c7718a6..47cde94ed 100644
--- a/src/resources/skill/skilldata.cpp
+++ b/src/resources/skill/skilldata.cpp
@@ -50,6 +50,7 @@ SkillData::SkillData() :
missEffectId(-1),
castingSrcEffectId(-1),
castingDstEffectId(-1),
+ castingGroundEffectId(-1),
srcEffectId(-1),
dstEffectId(-1)
{
diff --git a/src/resources/skill/skilldata.h b/src/resources/skill/skilldata.h
index 016ba98cb..2eb8150c9 100644
--- a/src/resources/skill/skilldata.h
+++ b/src/resources/skill/skilldata.h
@@ -50,6 +50,7 @@ struct SkillData final
int missEffectId;
int castingSrcEffectId;
int castingDstEffectId;
+ int castingGroundEffectId;
int srcEffectId;
int dstEffectId;