Auxiliary.PendCondition
Signature
lua
Auxiliary.PendCondition(Effect e, Card|nil c, Group|nil og) -> boolDescription
Condition function for the shared Pendulum Summon procedure. It checks the two Pendulum Zones, current scales, hand and face-up Extra Deck candidate pools, available Monster Zones, once-per-turn state, extra Pendulum Summon effects, and whether at least one candidate can be Pendulum Summoned.
Parameters
eEffectcCard|nil- Procedure handler. When nil, the helper returns true for the core's availability probe.ogGroup|nil- Optional candidate group supplied by the core or another helper; nil uses the player's hand/Extra Deck candidates.
Returns
bool- true if a Pendulum Summon is available.
Source
Utilities/procedure.lua:2004
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 1 indexed script(s).
- Search this function in the Script Explorer with
Auxiliary.PendCondition.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Pendulum Encore | 6992184 | Scripts/c6992184.lua | 1 |
Script Examples
Pendulum Encore (6992184)
Source: Scripts/c6992184.lua
lua
local g=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_HAND+LOCATION_EXTRA,0,exc,TYPE_PENDULUM)
if #g==0 then return false end
return aux.PendCondition(e,lpz,g)
end
function c6992184.cfilter(c,e,tp)