v0.9.2a: fixed the excess charge talent not working above max charge

This commit is contained in:
Evan Debenham 2021-03-07 17:56:44 -05:00
parent 7f3f6e1bb2
commit 84fe9b5d93

View File

@ -153,7 +153,7 @@ public class MagesStaff extends MeleeWeapon {
damage = Math.round( damage * (1f + Dungeon.hero.pointsInTalent(Talent.EMPOWERED_STRIKE)/6f));
}
if (wand.curCharges == wand.maxCharges && attacker instanceof Hero && Random.Int(6) < ((Hero) attacker).pointsInTalent(Talent.EXCESS_CHARGE)){
if (wand.curCharges >= wand.maxCharges && attacker instanceof Hero && Random.Int(6) < ((Hero) attacker).pointsInTalent(Talent.EXCESS_CHARGE)){
Buff.affect(attacker, Barrier.class).setShield(buffedLvl()*2);
}