RushDuel.IsDefense
Alias: RD.IsDefense. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.IsDefense(any card, any def) -> 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
条件: 守备力为 defParameters
cardany: Type and behavior are not yet reviewed; see the source.defany: 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:91
lua
function RushDuel.IsDefense(card, def)
return card:IsDefense(def) and not RushDuel.IsMaximumMode(card)
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 190 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.IsDefense.
Script Examples
Nativity of the Monarchs (120244063)
Source: Rush/Scripts/c120244063.lua
lua
end
function cm.spfilter(c,e,tp)
return c:IsLevelAbove(5) and RD.IsDefense(c,1000) and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEUP_ATTACK)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)Dark-Guiding Kuriboh (120280009)
Source: Rush/Scripts/c120280009.lua
lua
end
function cm.spfilter(c,e,tp)
return (c:IsCode(list[1]) or (c:IsLevel(7) and RD.IsDefense(c,2100)))
and RD.IsCanBeSpecialSummoned(c,e,tp,POS_FACEDOWN_DEFENSE)
endMiracle Pick (120253052)
Source: Rush/Scripts/c120253052.lua
lua
--Activate
function cm.costfilter(c,e,tp)
return not c:IsPublic() and c:IsLevel(7) and c:IsAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK) and c:IsRace(RACE_PSYCHO) and RD.IsDefense(c,0)
end
cm.cost=RD.CostShowHand(cm.costfilter,1,1)