Skip to content

Commit 408e7b7

Browse files
committed
fix: 修复野外不能监控系统气劲的问题
1 parent d2f402b commit 408e7b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

MY_TeamMon/src/MY_TeamMon.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ function D.OnBuff(dwOwner, bDelete, bCanCancel, dwBuffID, nCount, nBuffLevel, dw
10601060
if MY_TEAM_MON_SHIELDED_TOTAL then
10611061
return
10621062
end
1063-
if MY_TEAM_MON_SHIELDED_OTHER_PLAYER and dwSkillSrcID ~= MY_TEAM_MON_CORE_PLAYERID then
1063+
if MY_TEAM_MON_SHIELDED_OTHER_PLAYER and X.IsPlayer(dwSkillSrcID) and dwSkillSrcID ~= MY_TEAM_MON_CORE_PLAYERID then
10641064
return
10651065
end
10661066
local szType = bCanCancel and 'BUFF' or 'DEBUFF'
@@ -1233,7 +1233,10 @@ end
12331233

12341234
-- 技能事件
12351235
function D.OnSkillCast(dwCaster, dwCastID, dwLevel, szEvent)
1236-
if MY_TEAM_MON_SHIELDED_TOTAL or (MY_TEAM_MON_SHIELDED_OTHER_PLAYER and dwCaster ~= MY_TEAM_MON_CORE_PLAYERID) then
1236+
if MY_TEAM_MON_SHIELDED_TOTAL then
1237+
return
1238+
end
1239+
if MY_TEAM_MON_SHIELDED_OTHER_PLAYER and X.IsPlayer(dwCaster) and dwCaster ~= MY_TEAM_MON_CORE_PLAYERID then
12371240
return
12381241
end
12391242
local key = dwCastID .. '_' .. dwLevel

0 commit comments

Comments
 (0)