RushDuel.SendToDeckBottom
Alias: RD.SendToDeckBottom. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.SendToDeckBottom(any target, any effect, any player, any reason) -> anyDescription
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
targetany: Type and behavior are not yet reviewed; see the source.effectany: Type and behavior are not yet reviewed; see the source.playerany: Type and behavior are not yet reviewed; see the source.reasonany: 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
endUsed 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.
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()
endMoonforce 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)