From 54a631211d176b0951d063753708a8bcb23edcbc Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 11 Dec 2007 22:06:36 +0000 Subject: - 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 --- src/map/status.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)) ) { -- cgit v1.2.3-70-g09d2