Skip to content

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

lua
Duel.GetTargetGroup(filter,player,s,o,ex,...)

Parameters ​

  • FilterFunction filter ​

    A function that must return true for a card to be included.

  • int player ​

    The player from whose perspective the s and o locations will be based on.

  • int s ​

    Composite Location value representing locations on player's side of the Duel.

  • int o ​

    Composite Location value representing locations on player's opponent's side of the Duel.

  • Group|Card|nil ex ​

    Cards to exclude from the returned group even if they match the filter.

  • any ... ​

    Additional arguments to be passed as additional arguments to filter.

Returns ​

  • Group ​

    The group of cards from the given locations that fulfill filter and can be targeted by the "current effect".