From 4e4c1618ba3722c53f722c8b60d4dda73dfc132e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 16 Mar 2021 18:39:52 -0400 Subject: [PATCH] v0.9.2b: fixed cases where the talisman would have negative charge --- .../items/artifacts/TalismanOfForesight.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/TalismanOfForesight.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/TalismanOfForesight.java index d7b390df0..9c8fe0370 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/TalismanOfForesight.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/TalismanOfForesight.java @@ -206,6 +206,10 @@ public class TalismanOfForesight extends Artifact { partialCharge ++; charge --; } + while (charge < 0){ + charge++; + partialCharge--; + } Talent.onArtifactUsed(Dungeon.hero); updateQuickslot(); Dungeon.observe();