diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-07 10:18:31 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-03-07 10:18:31 -0500 |
| commit | 33467f58a04a37085f72324b095ee75b59d61355 (patch) | |
| tree | 4a9c72548b71559779362a6783a406459c5af6dc | |
| parent | 767ca6ea1dfdaf890c24900515d6d5a5644ba262 (diff) | |
| download | tanetane-33467f58a04a37085f72324b095ee75b59d61355.tar.gz tanetane-33467f58a04a37085f72324b095ee75b59d61355.tar.bz2 tanetane-33467f58a04a37085f72324b095ee75b59d61355.zip | |
Mirror looking doesn't happen while a message is active
| -rw-r--r-- | res/scripts/hallucination_mirror.lua | 4 |
1 files changed, 2 insertions, 2 deletions
| 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() | |||
| 9 | while getMap():getName() == "hallucination_mirror" do | 9 | while getMap():getName() == "hallucination_mirror" do |
| 10 | if IsSpriteInZone("lucas", "mirror_sight") and IsSpriteInZone("kuma", "mirror_sight") and IsSpriteInZone("duster", "mirror_sight") and IsSpriteInZone("boney", "mirror_sight") then | 10 | if IsSpriteInZone("lucas", "mirror_sight") and IsSpriteInZone("kuma", "mirror_sight") and IsSpriteInZone("duster", "mirror_sight") and IsSpriteInZone("boney", "mirror_sight") then |
| 11 | timer = 5000 -- milliseconds | 11 | timer = 5000 -- milliseconds |
| 12 | while timer > 0 and getSprite(getPlayerSprite()).characterState == CharacterState.STILL and getMap():getName() == "hallucination_mirror" do | 12 | while timer > 0 and getSprite(getPlayerSprite()).characterState == CharacterState.STILL and getMap():getName() == "hallucination_mirror" and not message().isMessageActive do |
| 13 | timer = timer - coroutine.yield() | 13 | timer = timer - coroutine.yield() |
| 14 | end | 14 | end |
| 15 | 15 | ||
| 16 | if timer <= 0 and getSprite(getPlayerSprite()).characterState == CharacterState.STILL and getMap():getName() == "hallucination_mirror" then | 16 | if timer <= 0 and getSprite(getPlayerSprite()).characterState == CharacterState.STILL and getMap():getName() == "hallucination_mirror" and not message().isMessageActive then |
| 17 | SetPartyDirection(getPlayerSprite(), Direction.UP) | 17 | SetPartyDirection(getPlayerSprite(), Direction.UP) |
| 18 | end | 18 | end |
| 19 | end | 19 | end |
