From d4ecbb5c9b448cf6da34d83b9c77f93afdc7c8bf Mon Sep 17 00:00:00 2001 From: u6077743 Date: Tue, 1 May 2018 16:11:54 +1000 Subject: [PATCH] Improved low hp notif. by considering nmz absorption, 2210 --- .../client/plugins/idlenotifier/IdleNotifierPlugin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/idlenotifier/IdleNotifierPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/idlenotifier/IdleNotifierPlugin.java index aad10316112..f0380e1d195 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/idlenotifier/IdleNotifierPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/idlenotifier/IdleNotifierPlugin.java @@ -36,6 +36,7 @@ import net.runelite.api.GameState; import net.runelite.api.Player; import net.runelite.api.Skill; +import net.runelite.api.Varbits; import net.runelite.api.events.AnimationChanged; import net.runelite.api.events.GameStateChanged; import net.runelite.api.events.GameTick; @@ -257,7 +258,7 @@ private boolean checkLowHitpoints() } if (client.getRealSkillLevel(Skill.HITPOINTS) > config.getHitpointsThreshold()) { - if (client.getBoostedSkillLevel(Skill.HITPOINTS) <= config.getHitpointsThreshold()) + if (client.getBoostedSkillLevel(Skill.HITPOINTS) + client.getVar(Varbits.NMZ_ABSORPTION) <= config.getHitpointsThreshold()) { if (!notifyHitpoints) {