v3.0.0: fixed quick spell sometimes working when tome isn't equipped
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ public class HolyTome extends Artifact {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean canCast( Hero hero, ClericSpell spell ){
|
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 ){
|
public void spendCharge( float chargesSpent ){
|
||||||
|
|||||||
Reference in New Issue
Block a user