summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-07 18:27:25 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-07 18:27:25 +0000
commit2e2bc3402805a132af5515b55c46b022c1abedf0 (patch)
treecb46f6c683322680031b059fd040342933086da8 /src/map/pc.c
parent5f9c11cca79f6a4d47c57d80ac9959337a1db224 (diff)
downloadhercules-2e2bc3402805a132af5515b55c46b022c1abedf0.tar.gz
hercules-2e2bc3402805a132af5515b55c46b022c1abedf0.tar.bz2
hercules-2e2bc3402805a132af5515b55c46b022c1abedf0.tar.xz
hercules-2e2bc3402805a132af5515b55c46b022c1abedf0.zip
* Corrected Triple Blow
* Added 'Guardian Angel' code for supernovices git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@492 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index d0563937a..ca8d3b602 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -280,9 +280,14 @@ int pc_setrestartvalue(struct map_session_data *sd,int type) {
//-----------------------
// 死亡した
- if(sd->special_state.restart_full_recover) { // オシリスカ?ド
+ if(sd->special_state.restart_full_recover || // オシリスカ?ド
+ sd->state.snovice_flag == 4) { // [Celest]
sd->status.hp=sd->status.max_hp;
sd->status.sp=sd->status.max_sp;
+ if (sd->state.snovice_flag == 4) {
+ sd->state.snovice_flag = 0;
+ skill_status_change_start(&sd->bl,SkillStatusChangeTable[MO_STEELBODY],1,0,0,0,skill_get_time(MO_STEELBODY,1),0 );
+ }
}
else {
if(s_class.job == 0 && battle_config.restart_hp_rate < 50) { //ノビは半分回復
@@ -5427,6 +5432,10 @@ int pc_damage(struct block_list *src,struct map_session_data *sd,int damage)
clif_updatestatus(sd,SP_HP);
pc_calcstatus(sd,0);
+ // activate Steel body if a super novice dies at 99+% exp [celest]
+ if (s_class.job == 23 && (i=sd->status.base_exp*1000/pc_nextbaseexp(sd))>=990 && i<=1000)
+ sd->state.snovice_flag = 4;
+
for(i=0;i<5;i++)
if(sd->dev.val1[i]){
skill_status_change_end(&map_id2sd(sd->dev.val1[i])->bl,SC_DEVOTION,-1);