Skip to content

Commit

Permalink
Merge pull request runelite#2211 from millettmb/2210-low-hitpoints-no…
Browse files Browse the repository at this point in the history
…tif-nmz

Improved low hp notif. by considering nmz absorption
  • Loading branch information
Adam- authored May 1, 2018
2 parents 9d5124a + d4ecbb5 commit a131a0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit a131a0b

Please sign in to comment.