RushDuel.IsSpecialSummonMainPhase
Alias: RD.IsSpecialSummonMainPhase. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.IsSpecialSummonMainPhase(any card, any type) -> anyDescription
Rush Duel helper declared in RDCondition.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.
Upstream source comment
text
条件: 这张卡特殊召唤的自己主要阶段Parameters
cardany: Type and behavior are not yet reviewed; see the source.typeany: 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/RDCondition.lua:42
lua
function RushDuel.IsSpecialSummonMainPhase(card, type)
return card:IsReason(REASON_SPSUMMON) and card:IsStatus(STATUS_SPSUMMON_TURN) and card:GetFlagEffect(FLAG_SUMMON_MAIN_PHASE) ~= 0
and (not type or card:IsSummonType(type))
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 69 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.IsSpecialSummonMainPhase.
Script Examples
Volcalizing Salamandeus (120272039)
Source: Rush/Scripts/c120272039.lua
lua
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e)
and RD.IsSpecialSummonMainPhase(c) and e:GetLabel()==1 then
RD.AttachExtraAttack(e,c,2,aux.Stringid(m,3),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
endVoidalfr Star Mayfly (120300034)
Source: Rush/Scripts/c120300034.lua
lua
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsSpecialSummonMainPhase(e:GetHandler(),SUMMON_TYPE_FUSION)
end
cm.cost=RD.CostSendGraveSubToDeck(cm.costfilter,cm.check,3,3)Brassdes of the Wicked Wheels (120304033)
Source: Rush/Scripts/c120304033.lua
lua
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return RD.IsSpecialSummonMainPhase(e:GetHandler())
end
cm.cost=RD.CostSendDeckTopToGrave(3)