From bfb4c510052f56c0af3f7fbca417ce23d0fd2203 Mon Sep 17 00:00:00 2001 From: skotlex Date: Sun, 28 May 2006 17:58:56 +0000 Subject: - Added functions status_revive, pc_revive and mob_revive to handle revival (it doesn't handles player respawning, though) - Corrected alive, raisemap, raiseall to use these functions. - Updated resurrection/mob-kaizel to use status_revive - Added SC_BLADESTOP to the skill enum at the beginning of status.c (fixes Bladestop causing an unknown status change message) - Fixed MSS_DEAD state skills not triggering. - Corrected some compilation warnings on the merc.* files. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6807 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/map/pc.c') diff --git a/src/map/pc.c b/src/map/pc.c index 64ee6b6e8..24c607130 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4735,7 +4735,15 @@ int pc_dead(struct map_session_data *sd,struct block_list *src) return 1; } -// +void pc_revive(struct map_session_data *sd,unsigned int hp, unsigned int sp) +{ + if(hp) clif_updatestatus(sd,SP_HP); + if(sp) clif_updatestatus(sd,SP_SP); + + pc_setstand(sd); + if(battle_config.pc_invincible_time > 0) + pc_setinvincibletimer(sd, battle_config.pc_invincible_time); +} // script? ˜A // /*========================================== -- cgit v1.2.3-70-g09d2