RushDuel.SendToDeckAndExists
Alias: RD.SendToDeckAndExists. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.SendToDeckAndExists(any target, any effect, any player, any reason, any filter, any count, any expect) -> 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.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/RDAction.lua:372
lua
function RushDuel.SendToDeckAndExists(target, effect, player, reason, filter, count, expect)
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 false
end
return Duel.SendtoDeck(g, nil, SEQ_DECKSHUFFLE, REASON_EFFECT) ~= 0 and RushDuel.IsOperatedGroupExists(filter, count, expect)
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 103 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.SendToDeckAndExists.
Script Examples
Analyze Phlogiston (120226001)
Source: Rush/Scripts/c120226001.lua
lua
local check=RD.Check(cm.check,lv)
RD.SelectGroupAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.filter),check,tp,LOCATION_GRAVE,0,3,3,nil,function(sg)
if RD.SendToDeckAndExists(sg,e,tp,REASON_EFFECT) then
Duel.BreakEffect()
Duel.Destroy(g,REASON_EFFECT)Exchange of the Sheep (120293030)
Source: Rush/Scripts/c120293030.lua
lua
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local mg=Duel.GetMatchingGroup(aux.NecroValleyFilter(Card.IsAbleToDeck),tp,LOCATION_GRAVE,LOCATION_GRAVE,nil)
if RD.SendToDeckAndExists(mg,e,tp,REASON_EFFECT) then
if Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
local tc=Duel.GetDecktopGroup(tp,1):GetFirst()Mega Jointech Fortrex [R] (120249005)
Source: Rush/Scripts/c120249005.lua
lua
RD.SelectAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.tdfilter),1-tp,0,LOCATION_GRAVE,3,3,nil,function(sg)
g:Merge(sg)
if RD.SendToDeckAndExists(g,e,tp,REASON_EFFECT) and c:IsFaceup() and c:IsRelateToEffect(e) and RD.IsMaximumMode(c) then
local og=Duel.GetOperatedGroup():Filter(cm.exfilter,nil)
local atk=og:GetSum(Card.GetLevel)*100