summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-06 18:19:45 -0300
committershennetsind <ind@henn.et>2013-06-06 18:19:45 -0300
commit290e6c7ac7443b0c4e44c65db1dfd6e3dd4587d2 (patch)
tree31d833deecdf8b31a3408d5098ca54f6cb1f021b /src/map/skill.c
parent3ffefa50cd02dee25b8fca450be1a20c4647aa15 (diff)
downloadhercules-290e6c7ac7443b0c4e44c65db1dfd6e3dd4587d2.tar.gz
hercules-290e6c7ac7443b0c4e44c65db1dfd6e3dd4587d2.tar.bz2
hercules-290e6c7ac7443b0c4e44c65db1dfd6e3dd4587d2.tar.xz
hercules-290e6c7ac7443b0c4e44c65db1dfd6e3dd4587d2.zip
Fixed Bug #7325
Special Thanks to Xgear~! http://hercules.ws/board/tracker/issue-7325-potion-pitcher-going-negative/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 2887d6788..aa3a9b3b8 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -6164,7 +6164,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
case AM_BERSERKPITCHER:
case AM_POTIONPITCHER: {
- int i,hp = 0,sp = 0;
+ int i,sp = 0;
+ int64 hp = 0;
if( dstmd && dstmd->class_ == MOBID_EMPERIUM ) {
map_freeblock_unlock();
return 1;
@@ -6254,14 +6255,14 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
}
clif->skill_nodamage(src,bl,skill_id,skill_lv,1);
if( hp > 0 || (skill_id == AM_POTIONPITCHER && sp <= 0) )
- clif->skill_nodamage(NULL,bl,AL_HEAL,hp,1);
+ clif->skill_nodamage(NULL,bl,AL_HEAL,(int)hp,1);
if( sp > 0 )
clif->skill_nodamage(NULL,bl,MG_SRECOVERY,sp,1);
#ifdef RENEWAL
if( tsc && tsc->data[SC_EXTREMITYFIST2] )
sp = 0;
#endif
- status_heal(bl,hp,sp,0);
+ status_heal(bl,(int)hp,sp,0);
}
break;
case AM_CP_WEAPON: