From c41446f2d1841d751638016311f3d14c95641fb5 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 29 Nov 2024 12:58:15 -0500 Subject: [PATCH] v3.0.0: fixed recall glyph being usable with scrolls of upgrade --- .../shatteredpixeldungeon/actors/hero/Talent.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java index 2cdebc884..5bce2eaa9 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java @@ -60,6 +60,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.HornOfPlenty; import com.shatteredpixel.shatteredpixeldungeon.items.rings.Ring; import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.Scroll; import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfRecharging; +import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfUpgrade; import com.shatteredpixel.shatteredpixeldungeon.items.stones.Runestone; import com.shatteredpixel.shatteredpixeldungeon.items.trinkets.ShardOfOblivion; import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand; @@ -722,7 +723,8 @@ public enum Talent { } if (hero.heroClass == HeroClass.CLERIC && hero.hasTalent(RECALL_GLYPH) - && Scroll.class.isAssignableFrom(cls)){ + && Scroll.class.isAssignableFrom(cls) + && cls != ScrollOfUpgrade.class){ Buff.affect(hero, RecallGlyph.UsedGlyphTracker.class, hero.pointsInTalent(RECALL_GLYPH) == 2 ? 300 : 10).item = cls; } }