v0.3.0e: fixed a bug with battlemage stacking charges

This commit is contained in:
Evan Debenham 2015-06-18 00:45:37 -04:00
parent 2aee4fe3c6
commit 1a690e3fab

View File

@ -119,7 +119,7 @@ public class MagesStaff extends MeleeWeapon {
@Override
public void proc(Char attacker, Char defender, int damage) {
if (wand != null && Dungeon.hero.subClass == HeroSubClass.BATTLEMAGE) {
wand.partialCharge += 0.33f;
if (wand.curCharges < wand.maxCharges) wand.partialCharge += 0.33f;
ScrollOfRecharging.charge((Hero)attacker);
wand.onHit(this, attacker, defender, damage);
}