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

View File

@@ -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();