v3.0.0: fixed quick spell sometimes working when tome isn't equipped

This commit is contained in:
Evan Debenham
2024-12-31 12:34:56 -05:00
parent c0727bd554
commit d8cdeff422

View File

@@ -131,7 +131,7 @@ public class HolyTome extends Artifact {
}
public boolean canCast( Hero hero, ClericSpell spell ){
return (charge >= spell.chargeUse(hero) && spell.canCast(hero));
return isEquipped(hero) && charge >= spell.chargeUse(hero) && spell.canCast(hero);
}
public void spendCharge( float chargesSpent ){