Water of Life + Fixed GPQ & Buff system
Added Water of Life. Fixed Shuang (GPQ) npc dc'ing the leader when first trying to enter the waiting area. Fixed some cases with the revamped buff system, that would not properly check for the best buffs in some scenarios, and would throw exceptions, caused by not properly protecting access to critical data.
This commit is contained in:
@@ -901,4 +901,21 @@ public class AbstractPlayerInteraction {
|
||||
public long getJailTimeLeft() {
|
||||
return getPlayer().getJailExpirationTimeLeft();
|
||||
}
|
||||
|
||||
public List<MaplePet> getDriedPets() {
|
||||
List<MaplePet> list = new LinkedList<>();
|
||||
|
||||
long curTime = System.currentTimeMillis();
|
||||
for(Item it : getPlayer().getInventory(MapleInventoryType.CASH).list()) {
|
||||
if(ItemConstants.isPet(it.getItemId()) && it.getExpiration() < curTime) {
|
||||
MaplePet pet = it.getPet();
|
||||
if (pet != null) {
|
||||
list.add(pet);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user