Skip to content

RushDuel.IsOperatedGroupExists ​

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

Signature ​

lua
RushDuel.IsOperatedGroupExists(any filter, any count, any expect) -> any

Description ​

Rush Duel helper declared in RDCondition.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.

Upstream source comment ​

text
额外条件: 最后的操作是否包含某种卡

Parameters ​

  • filter any: Type and behavior are not yet reviewed; see the source.
  • count any: Type and behavior are not yet reviewed; see the source.
  • expect any: Type and behavior are not yet reviewed; see the source.

Returns ​

  • any: Return contract has not been reviewed; inspect the source below.

Source ​

Rush/Utilities/RDCondition.lua:422

lua
function RushDuel.IsOperatedGroupExists(filter, count, expect)
    return filter == nil or Duel.GetOperatedGroup():IsExists(filter, count, expect)
end

Used By ​

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

  • Detected in 17 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.IsOperatedGroupExists.
CardIDScriptDetected Calls
Abyssal Dragon Lord Abyss Poseidra [L]120239013Rush/Scripts/c120239013.lua1
Curse of the Magiclad Dragon120304061Rush/Scripts/c120304061.lua1
Star Protector Recapture120306063Rush/Scripts/c120306063.lua1
Celeb Rose Warlock120254046Rush/Scripts/c120254046.lua1
Machine Inspector120257057Rush/Scripts/c120257057.lua1
Constructor Sentry Dragline120247042Rush/Scripts/c120247042.lua1
Celeb Rose Enchanter120254050Rush/Scripts/c120254050.lua1
Sevens Road Witch120115001Rush/Scripts/c120115001.lua1
Frenzied Panda of the Bamboo Forest120294028Rush/Scripts/c120294028.lua1
Spice the Special Noodle Ninja Rich Broth120300036Rush/Scripts/c120300036.lua1
Specter of Heaven's Beginning120249035Rush/Scripts/c120249035.lua1
Cat Claw Girl120235016Rush/Scripts/c120235016.lua1
Draconic Fruits120294046Rush/Scripts/c120294046.lua1
Shield in the Right Hand120246048Rush/Scripts/c120246048.lua1
Descent of the Sweeping Spirit120228057Rush/Scripts/c120228057.lua1
Volcano Black Dragon120283041Rush/Scripts/c120283041.lua1
Space Resonance120260019Rush/Scripts/c120260019.lua1

Script Examples ​

Abyssal Dragon Lord Abyss Poseidra [L] (120239013) ​

Source: Rush/Scripts/c120239013.lua

lua
	if chk==0 then return g:GetCount()>0 end
	RD.SendToDeckBottom(g,e,tp,REASON_COST)
	if RD.IsOperatedGroupExists(cm.exfilter,3,nil) then
		e:SetValue(1)
	else

Curse of the Magiclad Dragon (120304061) ​

Source: Rush/Scripts/c120304061.lua

lua
		if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then
			if RD.CanSelectAndSpecialSummon(aux.Stringid(m,1),aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,2,nil,e,POS_FACEUP_DEFENSE,true)~=0
				and RD.IsOperatedGroupExists(cm.exfilter,1,nil) then
				local filter=RD.Filter(cm.posfilter,e,tp)
				RD.CanSelectAndDoAction(aux.Stringid(m,2),HINTMSG_SET,filter,tp,0,LOCATION_MZONE,1,1,nil,function(sg)

Star Protector Recapture (120306063) ​

Source: Rush/Scripts/c120306063.lua

lua
	RD.SelectAndDoAction(HINTMSG_DESTROY,nil,tp,0,LOCATION_ONFIELD,1,1,nil,function(g)
		if Duel.Destroy(g,REASON_EFFECT)~=0
			and RD.IsOperatedGroupExists(cm.exfilter,1,nil)
			and RD.CanSelectAndSpecialSummon(aux.Stringid(m,1),aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP)~=0 then
			local tc=Duel.GetOperatedGroup():GetFirst()