Exclude ironmen from daily herb box notifications

This commit is contained in:
Ethan
2018-05-25 12:57:18 -05:00
committed by Ethan
parent 3a6af37959
commit ee11c98f28

View File

@@ -36,6 +36,7 @@ import net.runelite.api.Varbits;
import net.runelite.api.events.ConfigChanged;
import net.runelite.api.events.GameStateChanged;
import net.runelite.api.events.GameTick;
import net.runelite.api.vars.AccountType;
import net.runelite.client.chat.ChatColor;
import net.runelite.client.chat.ChatColorType;
import net.runelite.client.chat.ChatMessageBuilder;
@@ -146,8 +147,9 @@ public class DailyTasksPlugin extends Plugin
private boolean checkCanCollectHerbBox()
{
// Exclude ironmen from herb box notifications
int value = client.getVar(Varbits.DAILY_HERB_BOX);
return value < 15; // < 15 can claim
return client.getAccountType() == AccountType.NORMAL && value < 15; // < 15 can claim
}
private boolean checkCanCollectStaves()