Skip to content

RushDuel.SendToDeckBottom ​

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

Signature ​

lua
RushDuel.SendToDeckBottom(any target, any effect, any player, any reason) -> 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.
  • effect any: Type and behavior are not yet reviewed; see the source.
  • player any: Type and behavior are not yet reviewed; see the source.
  • reason 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:401

lua
function RushDuel.SendToDeckBottom(target, effect, player, reason)
    local hints = Group.CreateGroup()
    local group = RushDuel.ToGroup(target):Filter(RushDuel.FilterToDeckTarget, nil, effect, player, reason, hints)
    local g = RushDuel.ToMaximunGroup(group)
    local tc = hints:GetFirst()
    if tc then
        Duel.Hint(HINT_CARD, 0, tc:GetOriginalCode())
    end
    if #g == 0 then
        return 0
    end
    local og, ct = RushDuel.SendToDeckSort(g, SEQ_DECKBOTTOM, REASON_EFFECT, player)
    return ct
end

Used By ​

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

  • Detected in 44 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.SendToDeckBottom.
CardIDScriptDetected Calls
Chaos Emperor Dragon - Envoy of the End120305001Rush/Scripts/c120305001.lua1
Moonforce Ziggy120300014Rush/Scripts/c120300014.lua1
Abyssal Dragon Lord Abyss Poseidra [L]120239013Rush/Scripts/c120239013.lua1
Wish of the Skysavior120253064Rush/Scripts/c120253064.lua1
Sacred Tower in Collapse120290064Rush/Scripts/c120290064.lua1
Icelyn the Super Assistant120254064Rush/Scripts/c120254064.lua1
Etraynze the Shadow Flower Ninja120170029Rush/Scripts/c120170029.lua1
Rurigra the Eternal120285028Rush/Scripts/c120285028.lua1
Cathedral of Arthenée120306065Rush/Scripts/c120306065.lua1
Celeb Rose Influencers120257044Rush/Scripts/c120257044.lua1
Whispurring Fairy120277047Rush/Scripts/c120277047.lua1
Abysslayer Apsaras120239028Rush/Scripts/c120239028.lua1
Worker Warrior - Sinister Chairman120196038Rush/Scripts/c120196038.lua1
Black Luster Soljersey - Envoy of the Drying120228017Rush/Scripts/c120228017.lua1
Lovely Connect120300054Rush/Scripts/c120300054.lua1
Cute Lovely Anela120260042Rush/Scripts/c120260042.lua1
Splendid Slash120254070Rush/Scripts/c120254070.lua1
Wynn the Wind Spiritualist120301012Rush/Scripts/c120301012.lua1
Imaginary Reactor120271025Rush/Scripts/c120271025.lua1
Zeptron120150016Rush/Scripts/c120150016.lua1
Caius the Shadow Monarch120291001Rush/Scripts/c120291001.lua1
Shadow Flower Spore120170048Rush/Scripts/c120170048.lua1
Garland the True Shadow Flower Ninja120170031Rush/Scripts/c120170031.lua1
Silent Learning120150006Rush/Scripts/c120150006.lua1
...and 20 more

Script Examples ​

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

Source: Rush/Scripts/c120305001.lua

lua
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
	local sg=e:GetLabelObject()
	RD.SendToDeckBottom(sg,e,tp,REASON_SPSUMMON)
	sg:DeleteGroup()
end

Moonforce Ziggy (120300014) ​

Source: Rush/Scripts/c120300014.lua

lua
			RD.CanSelectAndDoAction(aux.Stringid(m,3),HINTMSG_TODECK,aux.NecroValleyFilter(cm.tdfilter),tp,LOCATION_GRAVE,0,1,1,nil,function(g)
				local c=e:GetHandler()
				if RD.SendToDeckBottom(g,e,tp,REASON_EFFECT)~=0
					and c:IsFaceup() and c:IsRelateToEffect(e) then
					RD.AttachAtkDef(e,c,0,500,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN)

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

Source: Rush/Scripts/c120239013.lua

lua
	local g=Duel.GetMatchingGroup(cm.costfilter,tp,LOCATION_GRAVE,0,nil)
	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)