RushDuel.CanSelectAndToHandOrSpecialSummon
Alias: RD.CanSelectAndToHandOrSpecialSummon. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.CanSelectAndToHandOrSpecialSummon(any desc, any hint, any filter, any tp, any s_range, any o_range, any expect, any e, any pos, any break_effect, any target_player) -> 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
可选操作: 选择怪兽加入手卡或者特殊召唤 (限定 1 只怪兽)Parameters
descany: Type and behavior are not yet reviewed; see the source.hintany: Type and behavior are not yet reviewed; see the source.filterany: Type and behavior are not yet reviewed; see the source.tpany: Type and behavior are not yet reviewed; see the source.s_rangeany: Type and behavior are not yet reviewed; see the source.o_rangeany: Type and behavior are not yet reviewed; see the source.expectany: Type and behavior are not yet reviewed; see the source.eany: Type and behavior are not yet reviewed; see the source.posany: Type and behavior are not yet reviewed; see the source.break_effectany: Type and behavior are not yet reviewed; see the source.target_playerany: 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:173
lua
function RushDuel.CanSelectAndToHandOrSpecialSummon(desc, hint, filter, tp, s_range, o_range, expect, e, pos, break_effect, target_player)
return RushDuel._private_action_can_select_match(desc, hint, filter, tp, s_range, o_range, 1, 1, expect, false, false, function(g)
local tc = g:GetFirst()
local ft = RushDuel.GetMZoneCount(target_player or tp, 1)
if tc:IsAbleToHand() and (not RD.IsCanBeSpecialSummoned(tc, e, tp, pos) or ft <= 0 or Duel.SelectOption(tp, 1190, 1152) == 0) then
if break_effect then
Duel.BreakEffect()
end
return RushDuel.SendToHandAndExists(tc, e, tp, REASON_EFFECT)
else
return RushDuel._special_summon(tc, e, tp, pos, break_effect, target_player)~=0
end
end, e, tp)
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 2 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.CanSelectAndToHandOrSpecialSummon.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Hydro Blaster Mini Bluefin | 120253017 | Rush/Scripts/c120253017.lua | 1 |
| Geefor the Defiant Soul | 120298006 | Rush/Scripts/c120298006.lua | 1 |
Script Examples
Hydro Blaster Mini Bluefin (120253017)
Source: Rush/Scripts/c120253017.lua
lua
local atk=g:GetSum(Card.GetLevel)*100
RD.AttachAtkDef(e,c,atk,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
RD.CanSelectAndToHandOrSpecialSummon(aux.Stringid(m,1),aux.Stringid(m,2),aux.NecroValleyFilter(cm.exfilter),tp,LOCATION_GRAVE,0,nil,e,POS_FACEUP,true)
end
endGeefor the Defiant Soul (120298006)
Source: Rush/Scripts/c120298006.lua
lua
if c:IsFaceup() and c:IsRelateToEffect(e) then
RD.AttachLevel(e,c,1,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
RD.CanSelectAndToHandOrSpecialSummon(aux.Stringid(m,1),aux.Stringid(m,2),aux.NecroValleyFilter(cm.exfilter),tp,LOCATION_GRAVE,0,nil,e,POS_FACEUP,true)
end
end