v0.9.1: fixed talent points being spendable after the hero dies
This commit is contained in:
parent
3959c7a51d
commit
f240e7863c
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user