From f240e7863c7ef36166b2406beff24c6a107e1591 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 29 Nov 2020 20:35:59 -0500 Subject: [PATCH] v0.9.1: fixed talent points being spendable after the hero dies --- .../shatteredpixel/shatteredpixeldungeon/ui/TalentButton.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/TalentButton.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/TalentButton.java index 4717fc790..f380104d5 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/TalentButton.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/TalentButton.java @@ -109,6 +109,7 @@ public class TalentButton extends Button { if (upgradeEnabled && Dungeon.hero != null + && Dungeon.hero.isAlive() && Dungeon.hero.talentPointsAvailable(tier) > 0 && Dungeon.hero.pointsInTalent(talent) < talent.maxPoints()){ ShatteredPixelDungeon.scene().addToFront(new WndInfoTalent(talent, pointsInTalent, new Callback() {