Skip to content

Card.GetMutualLinkedGroup ​

Signature ​

lua
Card.GetMutualLinkedGroup(Card c) -> Group

Description ​

Returns the Group of cards mutually linked with c.

Parameters ​

  • c Card

Returns ​

  • Group

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3473

Guided Examples ​

Learn how to use this function in context:

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 3 indexed script(s).
  • Search this function in the Script Explorer with Card.GetMutualLinkedGroup.
CardIDScriptDetected Calls
Zero Extra Link60162470Scripts/c60162470.lua1
V-LAN Hydra13536606Scripts/c13536606.lua1
Akashic Magician28776350Scripts/c28776350.lua2

Script Examples ​

Source: Scripts/c60162470.lua

lua
	local lg=Duel.GetMatchingGroup(c60162470.lkfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
	for tc in aux.Next(lg) do
		tg:Merge(tc:GetMutualLinkedGroup())
	end
	if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c60162470.filter(chkc,tg) end

V-LAN Hydra (13536606) ​

Source: Scripts/c13536606.lua

lua
function c13536606.tktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
	local c=e:GetHandler()
	local lg=c:GetMutualLinkedGroup()
	if chkc then return chkc:IsLocation(LOCATION_MZONE) and c13536606.rfilter(chkc,tp,lg) end
	if chk==0 then return Duel.IsExistingTarget(c13536606.rfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tp,lg)

Akashic Magician (28776350) ​

Source: Scripts/c28776350.lua

lua
	if chk==0 then
		local c=e:GetHandler()
		local lg=c:GetMutualLinkedGroup()
		local ct=lg:GetSum(Card.GetLink)
		if ct<=0 or not Duel.IsPlayerCanDiscardDeck(tp,ct) then return false end