Skip to content

RushDuel.SendToGraveAndExists ​

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

Signature ​

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

Description ​

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

Upstream source comment ​

text
操作: 送去墓地

Parameters ​

  • target any: Type and behavior are not yet reviewed; see the source.
  • 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/RDAction.lua:299

lua
function RushDuel.SendToGraveAndExists(target, filter, count, expect)
    local g = RushDuel.ToMaximunGroup(target)
    return Duel.SendtoGrave(g, REASON_EFFECT) ~= 0 and RushDuel.IsOperatedGroupExists(filter, count, expect)
end

Used By ​

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

  • Detected in 33 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.SendToGraveAndExists.
CardIDScriptDetected Calls
Chaos Emperor Dragon - Envoy of the End120305001Rush/Scripts/c120305001.lua1
Nobody Phantom Thief120244060Rush/Scripts/c120244060.lua1
Nobody Phantom Thief120273005Rush/Scripts/c120273005.lua1
Lovely Rabbit120300018Rush/Scripts/c120300018.lua1
Instant Fusion120305053Rush/Scripts/c120305053.lua1
Etraynze the Shadow Flower Ninja120170029Rush/Scripts/c120170029.lua1
Goe Goe the Rumored Ninja120306029Rush/Scripts/c120306029.lua1
Hysteric Party120279035Rush/Scripts/c120279035.lua1
Critical Service120260022Rush/Scripts/c120260022.lua1
Lostream Record120309044Rush/Scripts/c120309044.lua1
Vic Viper Beginning120294026Rush/Scripts/c120294026.lua1
Lostream Stream120309046Rush/Scripts/c120309046.lua1
Legendary Scout120271047Rush/Scripts/c120271047.lua1
Neo-Spacian Aqua Dolphin120264017Rush/Scripts/c120264017.lua1
Metarion King Cobrastar120205039Rush/Scripts/c120205039.lua1
Voidalfr Heavenstar120300006Rush/Scripts/c120300006.lua1
Yoctron120150017Rush/Scripts/c120150017.lua1
Contact Dark Matter Wyvern120264003Rush/Scripts/c120264003.lua1
Descent of the Sweeping Spirit120228057Rush/Scripts/c120228057.lua1
Cyber Rush Dragon120231021Rush/Scripts/c120231021.lua1
Dian Keto the Security Master120170026Rush/Scripts/c120170026.lua1
Card 120106002120106002Rush/Scripts/c120106002.lua1
Transam Nebula Fusion120272048Rush/Scripts/c120272048.lua1
Endless Romance Blitz120205034Rush/Scripts/c120205034.lua1
...and 9 more

Script Examples ​

Chaos Emperor Dragon - Envoy of the End (120305001) ​

Source: Rush/Scripts/c120305001.lua

lua
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	local g=Duel.GetMatchingGroup(cm.filter,tp,LOCATION_HAND+LOCATION_ONFIELD,LOCATION_HAND+LOCATION_ONFIELD,nil)
	if g:GetCount()>0 and RD.SendToGraveAndExists(g) then
		local ct=Duel.GetOperatedGroup():FilterCount(Card.IsControler,nil,1-tp)
		if ct>0 then

Nobody Phantom Thief (120244060) ​

Source: Rush/Scripts/c120244060.lua

lua
		RD.SelectAndDoAction(HINTMSG_TOGRAVE,cm.filter,tp,LOCATION_HAND,0,1,99,nil,function(g)
			Duel.BreakEffect()
			if RD.SendToGraveAndExists(g) and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 then
				local e1=Effect.CreateEffect(e:GetHandler())
				e1:SetDescription(aux.Stringid(m,1))

Nobody Phantom Thief (120273005) ​

Source: Rush/Scripts/c120273005.lua

lua
		RD.SelectAndDoAction(HINTMSG_TOGRAVE,cm.filter,tp,LOCATION_HAND,0,1,99,nil,function(g)
			Duel.BreakEffect()
			if RD.SendToGraveAndExists(g) and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 then
				local e1=Effect.CreateEffect(e:GetHandler())
				e1:SetDescription(aux.Stringid(m,1))