diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java index 82bb9fd7c..a20d4855c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java @@ -147,6 +147,14 @@ public class WndClericSpells extends Window { addToBack(bg); } + @Override + protected void onPointerUp() { + super.onPointerUp(); + if (!tome.canCast(Dungeon.hero, spell)){ + icon.alpha( 0.3f ); + } + } + @Override protected void layout() { super.layout();