Skip to content

Auxiliary.dncheck ​

Signature ​

lua
Auxiliary.dncheck(Group g) -> void

Description ​

Returns true if every card in g has a different card code.

Parameters ​

  • g Group

Source ​

  • Utilities/utility.lua:1129

Used By ​

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

  • Detected in 213 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.dncheck.
CardIDScriptDetected Calls
Ehther the Heavenly Monarch96570609Scripts/c96570609.lua1
Pere-Zenet Em Heru46273941Scripts/c46273941.lua1
Am Duazenet45151304Scripts/c45151304.lua1
Prank-Kids Weather Washer44509529Scripts/c44509529.lua1
Shining Draw35906693Scripts/c35906693.lua1
Artmage Masterwork -Succession-37517035Scripts/c37517035.lua2
Chimera Fusion63136489Scripts/c63136489.lua1
Prank-Kids Rocket Ride18514525Scripts/c18514525.lua1
Regenesis Birth27781371Scripts/c27781371.lua1
Vernusylph and the Changing Season37313338Scripts/c37313338.lua1
Chaos Magical Hats2372506Scripts/c2372506.lua2
Isolde, Two Tales of the Noble Knights59934749Scripts/c59934749.lua1
Ojamassimilation2390019Scripts/c2390019.lua2
Cyberse Reminder56337500Scripts/c56337500.lua1
Vanquish Soul Trinity Burst53330789Scripts/c53330789.lua1
Power Tool Braver Dragon63265554Scripts/c63265554.lua1
Alba System Dogmatikalamity93053159Scripts/c93053159.lua2
Prank-Kids Bow-Wow-Bark43886072Scripts/c43886072.lua1
Super Quantal Mech Ship Magnacarrier10424147Scripts/c10424147.lua1
Divine Serpent Apophis97800311Scripts/c97800311.lua1
Erebus the Underworld Monarch23064604Scripts/c23064604.lua1
World Legacy Monstrosity14604710Scripts/c14604710.lua1
Numeron Calling77402960Scripts/c77402960.lua1
Dual Avatar - Manifested A-Un28798938Scripts/c28798938.lua2
...and 189 more

Script Examples ​

Ehther the Heavenly Monarch (96570609) ​

Source: Scripts/c96570609.lua

lua
	if g:GetClassCount(Card.GetCode)<2 then return end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
	local tg1=g:SelectSubGroup(tp,aux.dncheck,false,2,2)
	if Duel.SendtoGrave(tg1,REASON_EFFECT)~=0 and tg1:IsExists(Card.IsLocation,2,nil,LOCATION_GRAVE)
		and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then

Pere-Zenet Em Heru (46273941) ​

Source: Scripts/c46273941.lua

lua
function s.gcheckf(tc,lv)
	return function(sg,ec)
		if not aux.dncheck(sg) then return false end
		if ec then
			return sg:GetSum(s.getrlv,tc)-s.getrlv(ec,tc)<=lv

Am Duazenet (45151304) ​

Source: Scripts/c45151304.lua

lua
function s.gcheckf(tc,lv)
	return function(sg,ec)
		if not aux.dncheck(sg) then return false end
		if ec then
			return sg:GetSum(s.getrlv,tc)-s.getrlv(ec,tc)<=lv