summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-06 18:19:45 -0300
committerEuphy <euphy@rathena.org>2013-06-15 15:40:10 -0400
commit64410fe1f36a09a22009f9f14054235d682adab8 (patch)
tree9c7ce597bbea12b1f6f6195272cfef43bdb7eeed /src/map/skill.c
parenta016205274dcce516138b63ca863738fde463e0c (diff)
downloadhercules-64410fe1f36a09a22009f9f14054235d682adab8.tar.gz
hercules-64410fe1f36a09a22009f9f14054235d682adab8.tar.bz2
hercules-64410fe1f36a09a22009f9f14054235d682adab8.tar.xz
hercules-64410fe1f36a09a22009f9f14054235d682adab8.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: