Skip to content

Commit 58444dd

Browse files
committed
Fix
fixed a bug introduced in a previous commit with the Duel.Release function
1 parent 2ad67cd commit 58444dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

proc_workaround.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ Duel.Release=(function()
4545
others:AddCard(targets)
4646
end
4747
end
48-
oldfunc(others,reason,rp)
48+
local res=oldfunc(others,reason,rp)
4949
if #exg>0 then
50-
Duel.SendtoGrave(exg,REASON_RELEASE|reason,nil,rp)
50+
res=res+Duel.SendtoGrave(exg,REASON_RELEASE|reason,nil,rp)
5151
end
52+
return res
5253
end
5354
end)()
5455

0 commit comments

Comments
 (0)