diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index dfa5cec7f..4e30268d8 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5350,7 +5350,16 @@ BUILDIN_FUNC(percentheal) sd = script_rid2sd(st); if( sd == NULL ) return 0; +#ifdef RENEWAL + if( sd->sc.data[SC_EXTREMITYFIST] ){ + const struct TimerData *timer; + int tick = skill_get_time2(MO_EXTREMITYFIST, sd->sc.data[SC_EXTREMITYFIST]->val1); + timer = get_timer(sd->sc.data[SC_EXTREMITYFIST]->timer); + if( DIFF_TICK(tick, DIFF_TICK(timer->tick, gettick())) < 10000 )// 10 sec + sp = 0; + } +#endif pc_percentheal(sd,hp,sp); return 0; } |