From 0c0e8310158414a15082eb8261925dc5b5c4790b Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 30 Jan 2019 22:00:46 -0500 Subject: [PATCH] v0.7.2: fixed issues with wand charging when recharging large amounts --- .../shatteredpixeldungeon/items/wands/Wand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java index b30cabdbd..e85ffaf76 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/Wand.java @@ -461,12 +461,16 @@ public abstract class Wand extends Item { if (curCharges < maxCharges) recharge(); - if (partialCharge >= 1 && curCharges < maxCharges) { + while (partialCharge >= 1 && curCharges < maxCharges) { partialCharge--; curCharges++; updateQuickslot(); } + if (curCharges == maxCharges){ + partialCharge = 0; + } + spend( TICK ); return true;