v0.9.1: fixed talent points being spendable after the hero dies

This commit is contained in:
Evan Debenham 2020-11-29 20:35:59 -05:00
parent 3959c7a51d
commit f240e7863c

View File

@ -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() {