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(); final String eventName = e.getEventName();
if (eventName.equals("newXpDrop"))
{
damage = 0;
}
// Handles Fake XP drops (Ironman, DMM Cap, 200m xp, etc) // 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[] intStack = client.getIntStack();
final int intStackSize = client.getIntStackSize(); final int intStackSize = client.getIntStackSize();

View File

@@ -84,6 +84,8 @@ LABEL55:
LABEL70: LABEL70:
jump LABEL508 jump LABEL508
LABEL71: LABEL71:
sconst "newXpDrop"
runelite_callback
iconst 10 iconst 10
stat_xp stat_xp
iload 25 iload 25