diff options
author | shennetsind <ind@henn.et> | 2013-04-02 20:38:36 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-02 20:38:36 -0300 |
commit | 98b26ebbe6b4df336cfccc38821b7a52d5980d01 (patch) | |
tree | 7a2bd4150ad36a5e2475a8e63a254b27a6ec72bc /src/map/pc.c | |
parent | 18e72749f736e05a7a40b25383faa5c9d12f815e (diff) | |
download | hercules-98b26ebbe6b4df336cfccc38821b7a52d5980d01.tar.gz hercules-98b26ebbe6b4df336cfccc38821b7a52d5980d01.tar.bz2 hercules-98b26ebbe6b4df336cfccc38821b7a52d5980d01.tar.xz hercules-98b26ebbe6b4df336cfccc38821b7a52d5980d01.zip |
Introducing New/Official mapflag: invincible_time_inc
Used officially in gvg maps (Implemented under GvG zone)
Special Thanks to Muad_Dib!
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 6fb45bcfe..104e5829f 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -124,10 +124,11 @@ static int pc_invincible_timer(int tid, unsigned int tick, int id, intptr_t data return 0; } -void pc_setinvincibletimer(struct map_session_data* sd, int val) -{ +void pc_setinvincibletimer(struct map_session_data* sd, int val) { nullpo_retv(sd); + val += map[sd->bl.m].invincible_time_inc; + if( sd->invincible_timer != INVALID_TIMER ) delete_timer(sd->invincible_timer,pc_invincible_timer); sd->invincible_timer = add_timer(gettick()+val,pc_invincible_timer,sd->bl.id,0); |