Skip to content

Commit 12e464c

Browse files
committed
fix Duel.Overlay not accounting for cards
1 parent f337c87 commit 12e464c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

proc_workaround.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ end
440440
Duel.Overlay=(function()
441441
local oldfunc=Duel.Overlay
442442
return function(xyz_monster,xyz_mats,send_to_grave)
443-
local eg=xyz_mats
443+
local eg=Group.FromCards(xyz_mats)
444444
local re=nil
445445
local r=REASON_RULE
446446
local rp=PLAYER_NONE
@@ -452,10 +452,10 @@ Duel.Overlay=(function()
452452
end
453453
if not send_to_grave then
454454
if type(xyz_mats)=="Card" then
455-
eg=eg+xyz_mats:GetOverlayGroup()
455+
eg:Merge(xyz_mats:GetOverlayGroup())
456456
elseif type(xyz_mats)=="Group" then
457457
for c in xyz_mats:Iter() do
458-
eg=eg+c:GetOverlayGroup()
458+
eg:Merge(c:GetOverlayGroup())
459459
end
460460
end
461461
end

0 commit comments

Comments
 (0)