Skip to content

Card.IsLinkMarker ​

Signature ​

lua
Card.IsLinkMarker(Card c, int dir) -> bool

Description ​

Checks whether c has Link Marker direction dir.

Parameters ​

  • c Card
  • dir int

Returns ​

  • bool

Source ​

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

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.IsLinkMarker.
CardIDScriptDetected Calls
Cynet Circuit82886276Scripts/c82886276.lua8
Firewall eXceed Dragon21065189Scripts/c21065189.lua8
Knightmare Corruptor Iblee10158145Scripts/c10158145.lua2

Script Examples ​

Cynet Circuit (82886276) ​

Source: Scripts/c82886276.lua

lua
function s.get_zone(c,seq)
	local zone=0
	if seq<4 and c:IsLinkMarker(LINK_MARKER_LEFT) then zone=bit.replace(zone,0x1,seq+1) end
	if seq>0 and seq<5 and c:IsLinkMarker(LINK_MARKER_RIGHT) then zone=bit.replace(zone,0x1,seq-1) end
	if seq==5 and c:IsLinkMarker(LINK_MARKER_TOP_LEFT) then zone=bit.replace(zone,0x1,2) end

Firewall eXceed Dragon (21065189) ​

Source: Scripts/c21065189.lua

lua
function c21065189.get_zone(c,seq)
	local zone=0
	if seq<4 and c:IsLinkMarker(LINK_MARKER_LEFT) then zone=bit.replace(zone,0x1,seq+1) end
	if seq>0 and seq<5 and c:IsLinkMarker(LINK_MARKER_RIGHT) then zone=bit.replace(zone,0x1,seq-1) end
	if seq==5 and c:IsLinkMarker(LINK_MARKER_TOP_LEFT) then zone=bit.replace(zone,0x1,2) end

Knightmare Corruptor Iblee (10158145) ​

Source: Scripts/c10158145.lua

lua
function c10158145.get_zone(c,seq)
	local zone=0
	if seq<4 and c:IsLinkMarker(LINK_MARKER_LEFT) then zone=bit.replace(zone,0x1,seq+1) end
	if seq>0 and seq<5 and c:IsLinkMarker(LINK_MARKER_RIGHT) then zone=bit.replace(zone,0x1,seq-1) end
	return zone