Skip to content

Commit afe34a9

Browse files
committed
获取居然会失焦…临时判断下玩家在不在忙碌
1 parent 8e0c80a commit afe34a9

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.Framework/src/MY.Chat.lua

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,25 @@ MY.RegisterExit("ChatPanelUnhook", function ()
10241024
end)
10251025

10261026
MY.RegisterMsgMonitor("QIYU", function(szMsg, nFont, bRich, r, g, b, szChannel)
1027-
if IsRemotePlayer(UI_GetClientPlayerID()) then
1027+
local me = GetClientPlayer()
1028+
if not me or me.bFightState
1029+
or (
1030+
me.nMoveState ~= MOVE_STATE.ON_STAND and
1031+
me.nMoveState ~= MOVE_STATE.ON_FLOAT and
1032+
me.nMoveState ~= MOVE_STATE.ON_SIT and
1033+
me.nMoveState ~= MOVE_STATE.ON_FREEZE and
1034+
me.nMoveState ~= MOVE_STATE.ON_ENTRAP and
1035+
me.nMoveState ~= MOVE_STATE.ON_DEATH and
1036+
me.nMoveState ~= MOVE_STATE.ON_AUTO_FLY and
1037+
me.nMoveState ~= MOVE_STATE.ON_START_AUTO_FLY
1038+
) then
1039+
return
1040+
end
1041+
local hWnd = Station.GetFocusWindow()
1042+
if hWnd and hWnd:GetType() == "WndEdit" then
1043+
return
1044+
end
1045+
if IsRemotePlayer(me.dwID) then
10281046
return
10291047
end
10301048
-- “醉戈止战”侠士福缘非浅,触发奇遇【阴阳两界】,此千古奇缘将开启怎样的奇妙际遇,令人神往!

0 commit comments

Comments
 (0)