Skip to content

Auxiliary.gfcheck ​

Signature ​

lua
Auxiliary.gfcheck(Group g, function f, any a1, any a2) -> bool

Description ​

Checks a 2-card group against one filter in either order: one card must satisfy f(c,a1) and the other f(c,a2).

Parameters ​

  • g Group
  • f function
  • a1 any
  • a2 any

Returns ​

  • bool - true if the two cards satisfy the filter in either order.

Source ​

  • Utilities/utility.lua:1153

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 41 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.gfcheck.
CardIDScriptDetected Calls
Tellusion the Magna Warrior24431911Scripts/c24431911.lua1
Chaos Emperor, the Dragon of Armageddon4538826Scripts/c4538826.lua2
A-to-Z-Dragon Buster Cannon65172015Scripts/c65172015.lua1
Dinomorphia Frenzy78420796Scripts/c78420796.lua1
Thunder Dragonduo55591586Scripts/c55591586.lua2
Chaos Emperor Dragon - Envoy of the End82301904Scripts/c82301904.lua2
Vanquish Soul Heavy Borger92895501Scripts/c92895501.lua2
Ma'at18631392Scripts/c18631392.lua1
Doll House67331360Scripts/c67331360.lua2
Concours de Cuisine (Culinary Confrontation)14283055Scripts/c14283055.lua1
Vanquish Soul Hollie Sue93156774Scripts/c93156774.lua4
Envoy of Chaos38695361Scripts/c38695361.lua2
Chaos Ruler, the Chaotic Magical Dragon3040496Scripts/c3040496.lua2
Master of Chaos85059922Scripts/c85059922.lua2
EN - Engage Neo Space80170678Scripts/c80170678.lua1
Vanquish Soul Dr. Mad Love29280200Scripts/c29280200.lua2
Evil Eyes Unleashed8775395Scripts/c8775395.lua1
Tellarknight Constellar Caduceus58858807Scripts/c58858807.lua1
The Chaos Creator90488465Scripts/c90488465.lua2
Chaos End Ruler - Ruler of the Beginning and the End41424250Scripts/c41424250.lua2
Chaos Beast49565413Scripts/c49565413.lua2
Black Luster Soldier - Envoy of the Beginning72989439Scripts/c72989439.lua2
Master Peace, the True Dracoslayer34079868Scripts/c34079868.lua1
EN Shuffle10186633Scripts/c10186633.lua1
...and 17 more

Script Examples ​

Tellusion the Magna Warrior (24431911) ​

Source: Scripts/c24431911.lua

lua
end
function s.gcheck(g,tp)
	return aux.gfcheck(g,Card.IsCode,51826619,87814728)
		and Duel.GetMZoneCount(tp,g)>0
end

Chaos Emperor, the Dragon of Armageddon (4538826) ​

Source: Scripts/c4538826.lua

lua
	return ((c:IsLocation(LOCATION_HAND) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0) or
		(c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0))
		and g:CheckSubGroup(aux.gfcheck,2,2,Card.IsAttribute,ATTRIBUTE_LIGHT,ATTRIBUTE_DARK)
end
function c4538826.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)

A-to-Z-Dragon Buster Cannon (65172015) ​

Source: Scripts/c65172015.lua

lua
end
function c65172015.fselect(g,tp,sc)
	return aux.gfcheck(g,Card.IsOriginalCodeRule,1561110,91998119)
		and Duel.GetLocationCountFromEx(tp,tp,g,sc)>0
end