Skip to content

Commit

Permalink
fix action loop being triggered with display-only monsters
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoythecode committed May 5, 2023
1 parent 84ca485 commit 57d37f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/ludicrousspeed/LudicrousSpeedMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public class LudicrousSpeedMod implements PreUpdateSubscriber {

@Override
public void receivePreUpdate() {
if (AbstractDungeon.currMapNode != null && AbstractDungeon.getCurrRoom().monsters != null) {
// some event screens display monsters without it being combat
if (AbstractDungeon.currMapNode != null && AbstractDungeon.getCurrRoom().monsters != null
&& AbstractDungeon.getCurrRoom().phase != AbstractRoom.RoomPhase.EVENT) {
if (LudicrousSpeedMod.plaidMode) {
ActionSimulator.actionLoop();
} else if (shouldNormalUpdate()) {
Expand Down

0 comments on commit 57d37f6

Please sign in to comment.