v2.1.0: fixed etheral chains clearing invis before their effect resolves

This commit is contained in:
Evan Debenham
2023-05-04 14:07:49 -04:00
parent abf3cd5a0d
commit fa0613bf23
@@ -173,11 +173,6 @@ public class EtherealChains extends Artifact {
if (chargeUse > charge) { if (chargeUse > charge) {
GLog.w( Messages.get(this, "no_charge") ); GLog.w( Messages.get(this, "no_charge") );
return; return;
} else {
charge -= chargeUse;
Invisibility.dispel(hero);
Talent.onArtifactUsed(hero);
updateQuickslot();
} }
hero.busy(); hero.busy();
@@ -195,6 +190,11 @@ public class EtherealChains extends Artifact {
Dungeon.observe(); Dungeon.observe();
GameScene.updateFog(); GameScene.updateFog();
hero.spendAndNext(1f); hero.spendAndNext(1f);
charge -= chargeUse;
Invisibility.dispel(hero);
Talent.onArtifactUsed(hero);
updateQuickslot();
} }
})); }));
hero.next(); hero.next();
@@ -237,11 +237,6 @@ public class EtherealChains extends Artifact {
if (chargeUse > charge){ if (chargeUse > charge){
GLog.w( Messages.get(EtherealChains.class, "no_charge") ); GLog.w( Messages.get(EtherealChains.class, "no_charge") );
return; return;
} else {
charge -= chargeUse;
Invisibility.dispel(hero);
Talent.onArtifactUsed(hero);
updateQuickslot();
} }
hero.busy(); hero.busy();
@@ -259,6 +254,11 @@ public class EtherealChains extends Artifact {
hero.spendAndNext(1f); hero.spendAndNext(1f);
Dungeon.observe(); Dungeon.observe();
GameScene.updateFog(); GameScene.updateFog();
charge -= chargeUse;
Invisibility.dispel(hero);
Talent.onArtifactUsed(hero);
updateQuickslot();
} }
})); }));
hero.next(); hero.next();