Skip to content

Commit

Permalink
Improved low hp notif. by considering nmz absorption, 2210
Browse files Browse the repository at this point in the history
  • Loading branch information
u6077743 authored and Adam- committed May 1, 2018
1 parent 9d5124a commit d4ecbb5
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 d4ecbb5

Please sign in to comment.