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
@@ -166,7 +166,7 @@ public class WndClericSpells extends Window {
hide(); hide();
if(!spell.canCast(Dungeon.hero)){ if(!tome.canCast(Dungeon.hero, spell)){
GLog.w(Messages.get(HolyTome.class, "no_spell")); GLog.w(Messages.get(HolyTome.class, "no_spell"));
} else { } else {
spell.onCast(tome, Dungeon.hero); spell.onCast(tome, Dungeon.hero);
@@ -203,7 +203,7 @@ public class WndClericSpells extends Window {
break; break;
case 0: case 0:
hide(); hide();
if(!spell.canCast(Dungeon.hero)){ if(!tome.canCast(Dungeon.hero, spell)){
GLog.w(Messages.get(HolyTome.class, "no_spell")); GLog.w(Messages.get(HolyTome.class, "no_spell"));
} else { } else {
spell.onCast(tome, Dungeon.hero); spell.onCast(tome, Dungeon.hero);