File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1366,6 +1366,9 @@ end
13661366function D .OnNpcEvent (npc , bEnter )
13671367 local data = D .GetData (' NPC' , npc .dwTemplateID )
13681368 local nTime = GetTime ()
1369+ if MY_TEAM_MON_SHIELDED_OTHER_PLAYER and X .IsPlayer (npc .dwEmployer ) and npc .dwEmployer ~= MY_TEAM_MON_CORE_PLAYERID then
1370+ return
1371+ end
13691372 if bEnter then
13701373 if not CACHE .NPC_LIST [npc .dwTemplateID ] then
13711374 CACHE .NPC_LIST [npc .dwTemplateID ] = {
@@ -1521,6 +1524,9 @@ end
15211524function D .OnDoodadEvent (doodad , bEnter )
15221525 local data = D .GetData (' DOODAD' , doodad .dwTemplateID )
15231526 local nTime = GetTime ()
1527+ if MY_TEAM_MON_SHIELDED_OTHER_PLAYER and X .IsPlayer (doodad .dwEmployer ) and doodad .dwEmployer ~= MY_TEAM_MON_CORE_PLAYERID then
1528+ return
1529+ end
15241530 if bEnter then
15251531 if not CACHE .DOODAD_LIST [doodad .dwTemplateID ] then
15261532 CACHE .DOODAD_LIST [doodad .dwTemplateID ] = {
You can’t perform that action at this time.
0 commit comments