From d8cdeff422a75a276e4844a5d74783671abf531c Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 31 Dec 2024 12:34:56 -0500 Subject: [PATCH] v3.0.0: fixed quick spell sometimes working when tome isn't equipped --- .../shatteredpixeldungeon/items/artifacts/HolyTome.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HolyTome.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HolyTome.java index 63c460f71..5f51936d0 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HolyTome.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/HolyTome.java @@ -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 ){