summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-12-26 18:59:05 +0100
committerHaru <haru@dotalux.com>2014-12-26 18:59:05 +0100
commit0de8d96761e4cc4dd8122c06e8ae0ddf5686a943 (patch)
tree29f2ba42d7d14124cc16059f7992929496e1863c /src/map/skill.c
parenta576c4effdb7b79d7db9b3a178d6e811a7ae82c2 (diff)
parent82fe2325853829e737b023c6e6382c04ad140d00 (diff)
downloadhercules-0de8d96761e4cc4dd8122c06e8ae0ddf5686a943.tar.gz
hercules-0de8d96761e4cc4dd8122c06e8ae0ddf5686a943.tar.bz2
hercules-0de8d96761e4cc4dd8122c06e8ae0ddf5686a943.tar.xz
hercules-0de8d96761e4cc4dd8122c06e8ae0ddf5686a943.zip
Merge pull request #424 from 4144/hpmupdate
Fixes after commit 6dd08befa6064a652d0d98e7cb85f0e353992dd5.
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index e70625866..ebcb31680 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6041,6 +6041,7 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
case MO_ABSORBSPIRITS:
{
int sp = 0;
+ int i;
if ( dstsd && dstsd->spiritball
&& (sd == dstsd || map_flag_vs(src->m) || (sd->duel_group && sd->duel_group == dstsd->duel_group))
&& ((dstsd->class_&MAPID_BASEMASK) != MAPID_GUNSLINGER || (dstsd->class_&MAPID_UPPERMASK) != MAPID_REBELLION)
@@ -6054,7 +6055,7 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
mob->target(dstmd,src,0);
}
if ( dstsd ) {
- for ( int i = SPIRITS_TYPE_CHARM_WATER; i < SPIRITS_TYPE_SPHERE; i++ )
+ for (i = SPIRITS_TYPE_CHARM_WATER; i < SPIRITS_TYPE_SPHERE; i++)
pc->del_charm(dstsd, dstsd->spiritcharm[i], i);
}
if (sp) status->heal(src, 0, sp, 3);
@@ -8922,7 +8923,8 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
status_percent_heal(src, 0, sp);
}
if ( dstsd ) {
- for ( int i = SPIRITS_TYPE_CHARM_WATER; i < SPIRITS_TYPE_SPHERE; i++ )
+ int i;
+ for (i = SPIRITS_TYPE_CHARM_WATER; i < SPIRITS_TYPE_SPHERE; i++)
pc->del_charm(dstsd, dstsd->spiritcharm[i], i);
}
clif->skill_nodamage(src, bl, skill_id, skill_lv, sp ? 1:0);