From 8b25d183a0a8718bbee81d7ef501072e0b80909a Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Tue, 17 Mar 2020 14:34:19 +0800 Subject: [PATCH] 切换层不更新回合 --- src/adv/Adv.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/adv/Adv.lua b/src/adv/Adv.lua index e672cfb..5c1419b 100644 --- a/src/adv/Adv.lua +++ b/src/adv/Adv.lua @@ -1301,7 +1301,10 @@ function Adv:clickBlock(roomId, blockId, params) end local needChange = true if clickEvent and block.event then - if block:getEventType() == AdvEventType.Out or block:getEventType() == AdvEventType.InOut or block:getEventType() == AdvEventType.Exit then + if block:getEventType() == AdvEventType.Out + or block:getEventType() == AdvEventType.InOut + or block:getEventType() == AdvEventType.Layer + or block:getEventType() == AdvEventType.Exit then needChange = false end end -- libgit2 0.21.2