RushDuel.IsOperatedGroupExists
Alias: RD.IsOperatedGroupExists. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.IsOperatedGroupExists(any filter, any count, any expect) -> anyDescription
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
filterany: Type and behavior are not yet reviewed; see the source.countany: Type and behavior are not yet reviewed; see the source.expectany: 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)
endUsed 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.
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)
elseCurse 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()