Skip to content

Duel.CheckChainUniqueness ​

Signature ​

lua
Duel.CheckChainUniqueness() -> bool

Description ​

Checks whether all current Chain Links have different handler card codes.

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 8 indexed script(s).
  • Search this function in the Script Explorer with Duel.CheckChainUniqueness.
CardIDScriptDetected Calls
Lightning Punisher45023678Scripts/c45023678.lua1
Iris, the Earth Mother9628664Scripts/c9628664.lua1
Surprise Chain70491413Scripts/c70491413.lua1
Mystical Wind Typhoon63516460Scripts/c63516460.lua1
Miraculous Rebirth37011715Scripts/c37011715.lua1
Chain Summoning9952083Scripts/c9952083.lua1
Accumulated Fortune98444741Scripts/c98444741.lua1
Chain Strike91623717Scripts/c91623717.lua1

Script Examples ​

Lightning Punisher (45023678) ​

Source: Scripts/c45023678.lua

lua
	if ct==1 then
		e:SetLabel(0)
	elseif not Duel.CheckChainUniqueness() then
		e:SetLabel(2)
	elseif ct>=3 and e:GetLabel()~=2 then

Iris, the Earth Mother (9628664) ​

Source: Scripts/c9628664.lua

lua
	if ct==1 then
		e:SetLabel(0)
	elseif not Duel.CheckChainUniqueness() then
		e:SetLabel(2)
	elseif ct>=3 and e:GetLabel()~=2 then

Surprise Chain (70491413) ​

Source: Scripts/c70491413.lua

lua
end
function c70491413.condition(e,tp,eg,ep,ev,re,r,rp)
	return Duel.GetCurrentChain()>0 and Duel.CheckChainUniqueness()
end
function c70491413.target(e,tp,eg,ep,ev,re,r,rp,chk)