Skip to content

Commit 147025e

Browse files
committed
Fix Mind Palace not happening early enough for turn 1 start-of-turn effects
1 parent 6c180e4 commit 147025e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Fixed issues where Voiceover lines for elite fights would play in non-elite fights that shared certain elite enemies (eg, Colosseum event)
1818
* Fixed memory tooltips not appearing when using Peek button from a card select screen (eg, Retain)
1919
* Fixed Weight of Memory damage number not counting Wandering Mind cards that are in the process of being played
20+
* Fixed Mind Palace not applying Sloth's draw down + energy up on turn 1
2021

2122
## [v1.3.0] - 2020-02-19
2223

src/main/java/stsjorbsmod/relics/MindPalaceRelic.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ public MindPalaceRelic() {
2020
}
2121

2222
@Override
23-
public void atBattleStart() {
23+
public void atBattleStartPreDraw() {
2424
if (trackedMemoryID != null) {
2525
this.flash();
2626
AbstractDungeon.actionManager.addToBottom(new RelicAboveCreatureAction(AbstractDungeon.player, this));
27-
AbstractDungeon.actionManager.addToBottom(new GainSpecificClarityAction(AbstractDungeon.player, trackedMemoryID));
27+
// We intentionally do this directly rather than via a GainClarity action because we want it to be
28+
// present before any onStartOfTurn callbacks get invoked (and for Sloth, before start-of-turn draw/energy
29+
// effects happen)
30+
MemoryManager.forPlayer(AbstractDungeon.player).gainClarity(trackedMemoryID);
2831
trackedMemoryID = null;
2932
}
3033
}

0 commit comments

Comments
 (0)