v3.0.0: fixed incorrect spell casting eligibility checks

This commit is contained in:
Evan Debenham
2024-11-29 12:57:27 -05:00
parent 3a0ffc6eae
commit 104180b3d9

View File

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