diff options
Diffstat (limited to 'res/scripts')
-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 |