From 7c3d58be00f4d8b6c55d6d0725b0e0b7acaf4783 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 21 May 2021 14:41:17 -0400 Subject: [PATCH] v0.9.3: fixed 'unspent points' message appearing when it shouldn't --- .../shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index 1fbed9d77..a1ba92ec0 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -335,7 +335,8 @@ public class Hero extends Char { public int talentPointsAvailable(int tier){ if (lvl < Talent.tierLevelThresholds[tier] - || (tier == 3 && subClass == HeroSubClass.NONE)){ + || (tier == 3 && subClass == HeroSubClass.NONE) + || (tier == 4 && armorAbility == null)){ return 0; } else if (lvl >= Talent.tierLevelThresholds[tier+1]){ return Talent.tierLevelThresholds[tier+1] - Talent.tierLevelThresholds[tier] - talentPointsSpent(tier);