Guild PQ + fixed negative EXP error

Implemented Guild PQ. Fixed a problem introduced earlier where negative
EXP would be deemed as "integer overflow", provoking many game breaking
issues as result.
This commit is contained in:
ronancpl
2017-06-18 03:19:53 -03:00
parent 81f9226286
commit 42fe74955d
135 changed files with 822 additions and 564 deletions

View File

@@ -131,13 +131,7 @@ public class AbstractPlayerInteraction {
}
public MapleMap getWarpMap(int map) {
MapleMap target;
if (getPlayer().getEventInstance() == null) {
target = c.getChannelServer().getMapFactory().getMap(map);
} else {
target = getPlayer().getEventInstance().getMapInstance(map);
}
return target;
return getPlayer().getWarpMap(map);
}
public MapleMap getMap(int map) {
@@ -529,11 +523,15 @@ public class AbstractPlayerInteraction {
return getPlayer().getParty();
}
public boolean isLeader() {
return isPartyLeader();
}
public boolean isGuildLeader() {
return getPlayer().isGuildLeader();
}
public boolean isLeader() {
public boolean isPartyLeader() {
if(getParty() == null)
return false;