summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-07-11 21:19:35 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2013-07-11 21:19:35 +0800
commit5de6aabb0a8c39f7cc327743440fbb28e09d9a69 (patch)
tree4d444f74d49a1ecc8968de059c59ebb7b4f66844
parent444835e777fbe49959ee8fe99746955018ec45eb (diff)
downloadhercules-5de6aabb0a8c39f7cc327743440fbb28e09d9a69.tar.gz
hercules-5de6aabb0a8c39f7cc327743440fbb28e09d9a69.tar.bz2
hercules-5de6aabb0a8c39f7cc327743440fbb28e09d9a69.tar.xz
hercules-5de6aabb0a8c39f7cc327743440fbb28e09d9a69.zip
Partial Fixed Bug#7462
-Burning(Eff_Burning) is now supported with 'bonus2 bAddEff' script command.
-rw-r--r--db/const.txt1
-rw-r--r--src/map/skill.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/db/const.txt b/db/const.txt
index d479e79cd..3b1aa6490 100644
--- a/db/const.txt
+++ b/db/const.txt
@@ -627,6 +627,7 @@ Eff_Confusion 7
Eff_Blind 8
Eff_Bleeding 9
Eff_DPoison 10
+Eff_Burning 11
Ele_Neutral 0
Ele_Water 1
diff --git a/src/map/skill.c b/src/map/skill.c
index deb6643c1..1b350f74c 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -744,10 +744,10 @@ int skill_additional_effect (struct block_list* src, struct block_list *bl, uint
temp = skill->get_time2(iStatus->sc2skill(type),7);
if (sd->addeff[i].flag&ATF_TARGET)
- iStatus->change_start(bl,type,rate,7,0,0,0,temp,0);
+ iStatus->change_start(bl,type,rate,7,0,(type == SC_BURNING)?src->id:0,0,temp,0);
if (sd->addeff[i].flag&ATF_SELF)
- iStatus->change_start(src,type,rate,7,0,0,0,temp,0);
+ iStatus->change_start(src,type,rate,7,0,(type == SC_BURNING)?src->id:0,0,temp,0);
}
}