From 33467f58a04a37085f72324b095ee75b59d61355 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 7 Mar 2021 10:18:31 -0500 Subject: Mirror looking doesn't happen while a message is active --- res/scripts/hallucination_mirror.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'res') diff --git a/res/scripts/hallucination_mirror.lua b/res/scripts/hallucination_mirror.lua index 053a710..73763f9 100644 --- a/res/scripts/hallucination_mirror.lua +++ b/res/scripts/hallucination_mirror.lua @@ -9,11 +9,11 @@ function hallucination_mirror.init() while getMap():getName() == "hallucination_mirror" do if IsSpriteInZone("lucas", "mirror_sight") and IsSpriteInZone("kuma", "mirror_sight") and IsSpriteInZone("duster", "mirror_sight") and IsSpriteInZone("boney", "mirror_sight") then timer = 5000 -- milliseconds - while timer > 0 and getSprite(getPlayerSprite()).characterState == CharacterState.STILL and getMap():getName() == "hallucination_mirror" do + while timer > 0 and getSprite(getPlayerSprite()).characterState == CharacterState.STILL and getMap():getName() == "hallucination_mirror" and not message().isMessageActive do timer = timer - coroutine.yield() end - if timer <= 0 and getSprite(getPlayerSprite()).characterState == CharacterState.STILL and getMap():getName() == "hallucination_mirror" then + if timer <= 0 and getSprite(getPlayerSprite()).characterState == CharacterState.STILL and getMap():getName() == "hallucination_mirror" and not message().isMessageActive then SetPartyDirection(getPlayerSprite(), Direction.UP) end end -- cgit 1.4.1