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);