Skip to content

RushDuel.Check ​

Alias: RD.Check. Requires the matching Rush Duel Lua bootstrap.

Signature ​

lua
RushDuel.Check(function check, ... any) -> function

Description ​

Returns a group predicate that invokes check(g, ...) with captured extra arguments. Use for subgroup constraints.

Parameters ​

  • check function: Predicate receiving the selected Group and captured arguments.
  • ... any: Type and behavior are not yet reviewed; see the source.

Returns ​

  • function: Group predicate.

Source ​

Rush/Utilities/RDFunction.lua:24

lua
function RushDuel.Check(check, ...)
    local args = {...}
    return function(g)
        return check(g, table.unpack(args))
    end
end

Used By ​

Generated from the local Rush/Scripts/ folder and rush_cards.cdb.

  • Detected in 9 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.Check.
CardIDScriptDetected Calls
Analyze Phlogiston120226001Rush/Scripts/c120226001.lua1
Animagica Majesty120277063Rush/Scripts/c120277063.lua1
Finalize Phoenix120231046Rush/Scripts/c120231046.lua1
Cyber Tactical Dragon120244044Rush/Scripts/c120244044.lua1
Fusion Cancel120253066Rush/Scripts/c120253066.lua1
Explosive Destructor Wyrm Dangerous Bakhamut120247038Rush/Scripts/c120247038.lua1
Tail Swipe120277059Rush/Scripts/c120277059.lua1
Destructurtle Meteor120205054Rush/Scripts/c120205054.lua1
Blades of Divine Wind120130042Rush/Scripts/c120130042.lua1

Script Examples ​

Analyze Phlogiston (120226001) ​

Source: Rush/Scripts/c120226001.lua

lua
	local g=Duel.GetMatchingGroup(cm.desfilter,tp,0,LOCATION_MZONE,nil)
	local lv=g:GetSum(Card.GetLevel,nil)
	local check=RD.Check(cm.check,lv)
	RD.SelectGroupAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.filter),check,tp,LOCATION_GRAVE,0,3,3,nil,function(sg)
		if RD.SendToDeckAndExists(sg,e,tp,REASON_EFFECT) then

Animagica Majesty (120277063) ​

Source: Rush/Scripts/c120277063.lua

lua
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	local filter=RD.Filter(cm.filter,e,tp)
	local check=RD.Check(cm.check,tp)
	RD.SelectGroupAndDoAction(aux.Stringid(m,1),filter,check,tp,LOCATION_MZONE,LOCATION_MZONE,2,3,nil,function(g)
		local sg=g:Filter(Card.IsControler,nil,1-tp)

Finalize Phoenix (120231046) ​

Source: Rush/Scripts/c120231046.lua

lua
	local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
	local lv=g:GetSum(Card.GetLevel,nil)
	local check=RD.Check(cm.check,lv,tp)
	RD.SelectGroupAndSpecialSummon(aux.NecroValleyFilter(cm.spfilter),check,tp,LOCATION_GRAVE,0,1,2,nil,e,POS_FACEUP)
end