Experimental Character/Client Closure + Morph & Crash skills patch
Player Trade is now enabled inside PQ & events. Refactored minigame code, now using enums rather than strings for logistics. Fixed Transformations not applying stat buffs properly. Warrior's Crash skills now acts accordingly with their description (rather than applying all combined debuffs). Added a server flag for Crash skills, to apply mob immunity debuffs as well. Fixed Shark Wave not stacking charges. Dragon Roar now properly stuns the mobs (stun effect won't show up, though). Refactored empty method on MapleCharacter, now freeing more resources. [EXPERIMENTAL] Upon lifetime's end of the object, empty function will be called alongside MapleClient's clear, should issues arise from that, it's TBD.
This commit is contained in:
@@ -843,7 +843,7 @@ public class MapleClient {
|
||||
player.saveCooldowns();
|
||||
player.saveToDB(true);
|
||||
|
||||
player = null;
|
||||
clear();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -935,25 +935,32 @@ public class MapleClient {
|
||||
player.saveCooldowns();
|
||||
player.saveToDB();
|
||||
}
|
||||
player = null;
|
||||
}
|
||||
}
|
||||
if (!serverTransition && isLoggedIn()) {
|
||||
updateLoginState(MapleClient.LOGIN_NOTLOGGEDIN);
|
||||
session.removeAttribute(MapleClient.CLIENT_KEY); // prevents double dcing during login
|
||||
session.close(false);
|
||||
}
|
||||
engines.clear();
|
||||
|
||||
clear();
|
||||
} else {
|
||||
engines.clear();
|
||||
}
|
||||
}
|
||||
|
||||
private void clear() { //usable when defining client = null shortly after
|
||||
// player hard reference removal thanks to Steve (kaito1410)
|
||||
if (this.player != null) {
|
||||
this.player.empty(true); // clears schedules and stuff
|
||||
}
|
||||
|
||||
Server.getInstance().unregisterLoginState(this);
|
||||
|
||||
this.accountName = null;
|
||||
this.macs = null;
|
||||
this.hwid = null;
|
||||
this.birthday = null;
|
||||
//this.engines = null;
|
||||
this.engines = null;
|
||||
this.player = null;
|
||||
this.receive = null;
|
||||
this.send = null;
|
||||
|
||||
Reference in New Issue
Block a user