XP Drops: Reset damage on new xp drops (#458)

This commit is contained in:
Lucwousin
2019-05-31 15:23:22 +02:00
committed by Kyleeld
parent fde38f0126
commit 7a1a94c0b4
2 changed files with 7 additions and 1 deletions

View File

@@ -350,8 +350,12 @@ public class XpDropPlugin extends Plugin
final String eventName = e.getEventName();
if (eventName.equals("newXpDrop"))
{
damage = 0;
}
// Handles Fake XP drops (Ironman, DMM Cap, 200m xp, etc)
if (eventName.equals("fakeXpDrop"))
else if (eventName.equals("fakeXpDrop"))
{
final int[] intStack = client.getIntStack();
final int intStackSize = client.getIntStackSize();