From 104180b3d9dac6e1b1dea28eb0014eda59cfc420 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 29 Nov 2024 12:57:27 -0500 Subject: [PATCH] v3.0.0: fixed incorrect spell casting eligibility checks --- .../shatteredpixeldungeon/windows/WndClericSpells.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 6dfb573ea..82bb9fd7c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndClericSpells.java @@ -166,7 +166,7 @@ public class WndClericSpells extends Window { hide(); - if(!spell.canCast(Dungeon.hero)){ + if(!tome.canCast(Dungeon.hero, spell)){ GLog.w(Messages.get(HolyTome.class, "no_spell")); } else { spell.onCast(tome, Dungeon.hero); @@ -203,7 +203,7 @@ public class WndClericSpells extends Window { break; case 0: hide(); - if(!spell.canCast(Dungeon.hero)){ + if(!tome.canCast(Dungeon.hero, spell)){ GLog.w(Messages.get(HolyTome.class, "no_spell")); } else { spell.onCast(tome, Dungeon.hero);