v0.3.0e: fixed a bug with battlemage stacking charges
This commit is contained in:
parent
2aee4fe3c6
commit
1a690e3fab
|
@ -119,7 +119,7 @@ public class MagesStaff extends MeleeWeapon {
|
||||||
@Override
|
@Override
|
||||||
public void proc(Char attacker, Char defender, int damage) {
|
public void proc(Char attacker, Char defender, int damage) {
|
||||||
if (wand != null && Dungeon.hero.subClass == HeroSubClass.BATTLEMAGE) {
|
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);
|
ScrollOfRecharging.charge((Hero)attacker);
|
||||||
wand.onHit(this, attacker, defender, damage);
|
wand.onHit(this, attacker, defender, damage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user