Skip to content

Auxiliary.drccheck ​

Signature ​

lua
Auxiliary.drccheck(Group g) -> void

Description ​

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

Parameters ​

  • g Group

Source ​

  • Utilities/utility.lua:1149

Used By ​

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

  • Detected in 5 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.drccheck.
CardIDScriptDetected Calls
Bujin Torifune29981935Scripts/c29981935.lua1
Carpiponica, Mystical Beast of the Forest85055821Scripts/c85055821.lua2
Pot of Dichotomy98672567Scripts/c98672567.lua1
Tribe Drive90969892Scripts/c90969892.lua2
Sky Scourge Cidhels15792576Scripts/c15792576.lua1

Script Examples ​

Bujin Torifune (29981935) ​

Source: Scripts/c29981935.lua

lua
	local g=Duel.GetMatchingGroup(c29981935.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
	local sg=g:SelectSubGroup(tp,aux.drccheck,false,2,2)
	if sg then
		Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP_DEFENSE)

Carpiponica, Mystical Beast of the Forest (85055821) ​

Source: Scripts/c85055821.lua

lua
	local g=Duel.GetMatchingGroup(c85055821.tdfilter,tp,LOCATION_GRAVE,0,e:GetHandler(),e)
	if chkc then return false end
	if chk==0 then return g:CheckSubGroup(aux.drccheck,2,2)
		and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
		and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end

Pot of Dichotomy (98672567) ​

Source: Scripts/c98672567.lua

lua
	local g=Duel.GetMatchingGroup(c98672567.filter,tp,LOCATION_GRAVE,0,nil,e)
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
	local g1=g:SelectSubGroup(tp,aux.drccheck,false,3,3)
	Duel.SetTargetCard(g1)
	Duel.SetOperationInfo(0,CATEGORY_TODECK,g1,3,0,0)