summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-16 13:32:38 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-02-16 13:32:38 +0000
commitd8465064129398f9c6010eacc835bca139977704 (patch)
treebddb49018561039a6d7e972f84a68af4645be6a0 /src/map/pc.c
parent96227e20ad5e8d2aede84776076ef4ba0fa7b79d (diff)
downloadhercules-d8465064129398f9c6010eacc835bca139977704.tar.gz
hercules-d8465064129398f9c6010eacc835bca139977704.tar.bz2
hercules-d8465064129398f9c6010eacc835bca139977704.tar.xz
hercules-d8465064129398f9c6010eacc835bca139977704.zip
Some updates
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1120 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 78d7102b8..3d40da95a 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1885,6 +1885,13 @@ int pc_bonus3(struct map_session_data *sd,int type,int type2,int type3,int val)
sd->autospell2_type = 1; // enemy
}
break;
+ case SP_HP_LOSS_RATE:
+ if(sd->state.lr_flag != 2) {
+ sd->hp_loss_value = type2;
+ sd->hp_loss_rate = type3;
+ sd->hp_loss_type = val;
+ }
+ break;
default:
if(battle_config.error_log)
printf("pc_bonus3: unknown type %d %d %d %d!\n",type,type2,type3,val);
@@ -6646,10 +6653,10 @@ static int pc_bleeding (struct map_session_data *sd)
sd->hp_loss_tick -= interval;
if (sd->status.hp < hp)
hp = sd->status.hp;
- if (sd->hp_loss_type == 0) {
- pc_heal(sd,-hp,0);
- } else if (sd->hp_loss_type == 1) {
+ if (sd->hp_loss_type == 1) {
+ clif_damage(&sd->bl,&sd->bl,gettick(),0,0,hp,0,0,0);
}
+ pc_heal(sd,-hp,0);
sd->hp_loss_tick = 0;
}
}