v3.0.0: fixed quick spell working when magic immune

This commit is contained in:
Evan Debenham
2025-02-14 13:01:22 -05:00
parent af7632f9c7
commit 99256290eb

View File

@@ -144,7 +144,9 @@ public class HolyTome extends Artifact {
public boolean canCast( Hero hero, ClericSpell spell ){
return (isEquipped(hero) || (Dungeon.hero.hasTalent(Talent.LIGHT_READING) && hero.belongings.contains(this)))
&& charge >= spell.chargeUse(hero) && spell.canCast(hero);
&& hero.buff(MagicImmune.class) == null
&& charge >= spell.chargeUse(hero)
&& spell.canCast(hero);
}
public void spendCharge( float chargesSpent ){