From fa0613bf2390c956be5586b75dace6ad814116dc Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 4 May 2023 14:07:49 -0400 Subject: [PATCH] v2.1.0: fixed etheral chains clearing invis before their effect resolves --- .../items/artifacts/EtherealChains.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/EtherealChains.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/EtherealChains.java index d640009ea..b5677240a 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/EtherealChains.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/EtherealChains.java @@ -173,11 +173,6 @@ public class EtherealChains extends Artifact { if (chargeUse > charge) { GLog.w( Messages.get(this, "no_charge") ); return; - } else { - charge -= chargeUse; - Invisibility.dispel(hero); - Talent.onArtifactUsed(hero); - updateQuickslot(); } hero.busy(); @@ -195,6 +190,11 @@ public class EtherealChains extends Artifact { Dungeon.observe(); GameScene.updateFog(); hero.spendAndNext(1f); + + charge -= chargeUse; + Invisibility.dispel(hero); + Talent.onArtifactUsed(hero); + updateQuickslot(); } })); hero.next(); @@ -237,11 +237,6 @@ public class EtherealChains extends Artifact { if (chargeUse > charge){ GLog.w( Messages.get(EtherealChains.class, "no_charge") ); return; - } else { - charge -= chargeUse; - Invisibility.dispel(hero); - Talent.onArtifactUsed(hero); - updateQuickslot(); } hero.busy(); @@ -259,6 +254,11 @@ public class EtherealChains extends Artifact { hero.spendAndNext(1f); Dungeon.observe(); GameScene.updateFog(); + + charge -= chargeUse; + Invisibility.dispel(hero); + Talent.onArtifactUsed(hero); + updateQuickslot(); } })); hero.next();