Duel.GetTargetGroup
Source Code | Usage Examples | Duel Functions
Returns cards from given locations that match a filter and can be targeted by the "current effect". Essentially Duel.GetMatchingGroup, but implicitly checks for targetable cards.
Signature
Duel.GetTargetGroup(FilterFunction filter, int player, int s, int o, Group|Card|nil ex, any ...) → Group
Duel.GetTargetGroup(filter,player,s,o,ex,...)Parameters
FilterFunction
filterA function that must return
truefor a card to be included.int
playerThe player from whose perspective the
sandolocations will be based on.int
sComposite Location value representing locations on
player's side of the Duel.int
oComposite Location value representing locations on
player's opponent's side of the Duel.Group|Card|nil
exCards to exclude from the returned group even if they match the filter.
any
...Additional arguments to be passed as additional arguments to
filter.