mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 22:04:36 +01:00
Only allow rerolls if the player has the right talent for it
This commit is contained in:
@@ -27,9 +27,13 @@ public class RogueBuffSelectMenu {
|
|||||||
public RogueBuffSelectMenu(RogueInstance rogue) {
|
public RogueBuffSelectMenu(RogueInstance rogue) {
|
||||||
this.rogue = rogue;
|
this.rogue = rogue;
|
||||||
this.maxBuffs = 3;
|
this.maxBuffs = 3;
|
||||||
this.maxRerolls = 1;
|
|
||||||
this.buffs = new ArrayList<>();
|
this.buffs = new ArrayList<>();
|
||||||
|
|
||||||
|
// Reset blessings talent
|
||||||
|
if (rogue.getPlayer().getRogueManager().hasTalent(11)) {
|
||||||
|
this.maxRerolls = 1;
|
||||||
|
}
|
||||||
|
|
||||||
this.generateRandomBuffs();
|
this.generateRandomBuffs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user