Only allow rerolls if the player has the right talent for it

This commit is contained in:
Melledy
2023-11-05 23:07:31 -08:00
parent aa7b3ed60a
commit 7d66e328fa

View File

@@ -27,9 +27,13 @@ public class RogueBuffSelectMenu {
public RogueBuffSelectMenu(RogueInstance rogue) {
this.rogue = rogue;
this.maxBuffs = 3;
this.maxRerolls = 1;
this.buffs = new ArrayList<>();
// Reset blessings talent
if (rogue.getPlayer().getRogueManager().hasTalent(11)) {
this.maxRerolls = 1;
}
this.generateRandomBuffs();
}