v3.0.0: corrected quick spell fix not working with light reading talent
This commit is contained in:
@@ -143,7 +143,8 @@ public class HolyTome extends Artifact {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean canCast( Hero hero, ClericSpell spell ){
|
public boolean canCast( Hero hero, ClericSpell spell ){
|
||||||
return isEquipped(hero) && charge >= spell.chargeUse(hero) && spell.canCast(hero);
|
return (isEquipped(hero) || (Dungeon.hero.hasTalent(Talent.LIGHT_READING) && hero.belongings.contains(this)))
|
||||||
|
&& charge >= spell.chargeUse(hero) && spell.canCast(hero);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void spendCharge( float chargesSpent ){
|
public void spendCharge( float chargesSpent ){
|
||||||
|
|||||||
Reference in New Issue
Block a user