hooks: move combat info callback to actor mixin

This commit is contained in:
Adam
2018-05-31 18:13:16 -04:00
parent 08c605a0d0
commit fd3a27f8b6
2 changed files with 16 additions and 10 deletions

View File

@@ -61,7 +61,6 @@ import net.runelite.api.events.FocusChanged;
import net.runelite.api.events.GameTick;
import net.runelite.api.events.GraphicsObjectCreated;
import net.runelite.api.events.HitsplatApplied;
import net.runelite.api.events.LocalPlayerDeath;
import net.runelite.api.events.MenuOpened;
import net.runelite.api.events.MenuOptionClicked;
import net.runelite.api.events.PostItemComposition;
@@ -454,15 +453,6 @@ public class Hooks
shouldProcessGameTick = true;
}
public static void onSetCombatInfo(Actor actor, int combatInfoId, int gameCycle, int var3, int var4, int healthRatio, int health)
{
if (healthRatio == 0 && actor == client.getLocalPlayer())
{
LocalPlayerDeath event = new LocalPlayerDeath();
eventBus.post(event);
}
}
public static void postItemComposition(ItemComposition itemComposition)
{
PostItemComposition event = new PostItemComposition();