From 290e6c7ac7443b0c4e44c65db1dfd6e3dd4587d2 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 6 Jun 2013 18:19:45 -0300 Subject: Fixed Bug #7325 Special Thanks to Xgear~! http://hercules.ws/board/tracker/issue-7325-potion-pitcher-going-negative/ Signed-off-by: shennetsind --- src/map/skill.c | 7 ++++--- 1 file 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: -- cgit v1.2.3-60-g2f50