v0.3.1: fixed a bug where the mages staff could go over 10 charges

This commit is contained in:
Evan Debenham 2015-06-27 18:20:34 -04:00 committed by Evan Debenham
parent 8947eabaf0
commit 7173c2cc47

View File

@ -193,7 +193,7 @@ public class MagesStaff extends MeleeWeapon {
wand.upgrade();
//gives the wand one additional charge
wand.maxCharges = Math.min(wand.maxCharges + 1, 10);
wand.curCharges = curCharges+1;
wand.curCharges = Math.min(wand.curCharges + 1, 10);
updateQuickslot();
}