v0.3.1: fixed a bug where the mages staff could go over 10 charges
This commit is contained in:
parent
8947eabaf0
commit
7173c2cc47
|
@ -193,7 +193,7 @@ public class MagesStaff extends MeleeWeapon {
|
||||||
wand.upgrade();
|
wand.upgrade();
|
||||||
//gives the wand one additional charge
|
//gives the wand one additional charge
|
||||||
wand.maxCharges = Math.min(wand.maxCharges + 1, 10);
|
wand.maxCharges = Math.min(wand.maxCharges + 1, 10);
|
||||||
wand.curCharges = curCharges+1;
|
wand.curCharges = Math.min(wand.curCharges + 1, 10);
|
||||||
updateQuickslot();
|
updateQuickslot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user