Skip to content

Auxiliary.PendCondition ​

Signature ​

lua
Auxiliary.PendCondition(Effect e, Card|nil c, Group|nil og) -> bool

Description ​

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 ​

  • e Effect
  • c Card|nil - Procedure handler. When nil, the helper returns true for the core's availability probe.
  • og Group|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.
CardIDScriptDetected Calls
Pendulum Encore6992184Scripts/c6992184.lua1

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)