Skip to content

Duel.CheckChainTarget ​

Signature ​

lua
Duel.CheckChainTarget(int chainc, Card c) -> bool

Description ​

Checks whether c is a valid card related to chainc.

Parameters ​

  • chainc int
  • c Card

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libduel.cpp:5064

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 10 indexed script(s).
  • Search this function in the Script Explorer with Duel.CheckChainTarget.
CardIDScriptDetected Calls
Dyna Tank75780818Scripts/c75780818.lua1
Mermail Abysstrite59170782Scripts/c59170782.lua2
Subterror Nemesis Defender68823957Scripts/c68823957.lua1
Blackwing Tamer - Obsidian Hawk Joe81983656Scripts/c81983656.lua1
Cairngorgon, Antiluminescent Knight21501505Scripts/c21501505.lua1
Shift59560625Scripts/c59560625.lua1
Kagemusha of the Six Samurai1498130Scripts/c1498130.lua1
Remote Revenge61656650Scripts/c61656650.lua2
Fiend's Hand Mirror58607704Scripts/c58607704.lua1
Fairy's Hand Mirror17653779Scripts/c17653779.lua1

Script Examples ​

Dyna Tank (75780818) ​

Source: Scripts/c75780818.lua

lua
end
function s.cefilter(c,ct)
	return Duel.CheckChainTarget(ct,c)
end
function s.cetg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)

Mermail Abysstrite (59170782) ​

Source: Scripts/c59170782.lua

lua
	local c=e:GetHandler()
	if tc==c or tc:IsControler(1-tp) or tc:IsFacedown() or not tc:IsLocation(LOCATION_MZONE) or not tc:IsSetCard(0x74) then return false end
	return Duel.CheckChainTarget(ev,c)
end
function c59170782.tgop1(e,tp,eg,ep,ev,re,r,rp)

Subterror Nemesis Defender (68823957) ​

Source: Scripts/c68823957.lua

lua
end
function c68823957.cefilter(c,ct,oc)
	return oc~=c and Duel.CheckChainTarget(ct,c)
end
function c68823957.cetg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)