Skip to content

Commit 69dda30

Browse files
authored
"Card.IsCoLinked" update
Added an extra parameter to check the number of co-links.
1 parent ce95c9c commit 69dda30

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

proc_workaround.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
fixes the effect relation issues with cards such as "Dramaturge of Despia", "Sacred Fire King Garunix", etc
66
--]]
77
Card.IsRelateToEffect=(function()
8-
local oldfunc=Card.IsRelateToEffect
9-
return function(c,e,...)
8+
local oldfunc=Card.IsRelateToEffect
9+
return function(c,e,...)
1010
--use the regular handling if a chain isn't currently resolving or the effect in question isn't an activated effect
1111
if not (Duel.IsChainSolving() and e:IsActivated()) then
1212
return oldfunc(c,e,...)

utility.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,9 @@ end
387387
function Card.HasEquipCard(c)
388388
return c:GetEquipCount()>0
389389
end
390-
function Card.IsCoLinked(c)
391-
return c:GetMutualLinkedGroupCount()>0
390+
function Card.IsCoLinked(c,count)
391+
count=count or 1
392+
return c:GetMutualLinkedGroupCount()>=count
392393
end
393394

394395
function Card.IsDestination(c,dest)

0 commit comments

Comments
 (0)