RushDuel.IsCanAttachCannotToHandEffect
Alias: RD.IsCanAttachCannotToHandEffect. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.IsCanAttachCannotToHandEffect(any card, any value) -> 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.valueany: 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:321
lua
function RushDuel.IsCanAttachCannotToHandEffect(card, value)
local values = RushDuel.GetEffectValues(card, EFFECT_CANNOT_TO_HAND_EFFECT)
for _, val in ipairs(values) do
if val == 1 then
return false
end
end
return true
endUsed By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 1 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.IsCanAttachCannotToHandEffect.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Lufer the Symbol of the Devils | 120309059 | Rush/Scripts/c120309059.lua | 1 |
Script Examples
Lufer the Symbol of the Devils (120309059)
Source: Rush/Scripts/c120309059.lua
lua
return c:IsFaceup() and c:IsAttackBelow(2500)
and (RD.IsCanAttachEffectIndes(c,tp,cm.indval)
or RD.IsCanAttachCannotToHandEffect(c,1)
or RD.IsCanAttachCannotToDeckEffect(c,1))
end