diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-11 22:06:36 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-12-11 22:06:36 +0000 |
commit | 54a631211d176b0951d063753708a8bcb23edcbc (patch) | |
tree | b5611f6df4a471893d3f793c8c96cb94a4daa7e8 /src/map/status.c | |
parent | 30569241f60ef81bc187706d14edd7a65aa12c52 (diff) | |
download | hercules-54a631211d176b0951d063753708a8bcb23edcbc.tar.gz hercules-54a631211d176b0951d063753708a8bcb23edcbc.tar.bz2 hercules-54a631211d176b0951d063753708a8bcb23edcbc.tar.xz hercules-54a631211d176b0951d063753708a8bcb23edcbc.zip |
- Status change start will now fail when invoked on players that are disconnecting.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11891 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index 215c04e72..c8ffde37c 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -4595,7 +4595,7 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val if( status_isdead(bl) ) return 0; - + if( bl->type == BL_MOB && ((TBL_MOB*)bl)->class_ == MOBID_EMPERIUM ) { if( type != SC_SAFETYWALL ) @@ -4604,6 +4604,9 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val BL_CAST(BL_PC, bl, sd); + if(sd && sd->state.waitingdisconnect) + return 0; //Character logging out, all his SC were wiped already! + //Adjust tick according to status resistances if( !(flag&(1|4)) ) { |