Skip to content

SubgroupCheck

subtype of function

A function used to check subgroups of a group.

Functions that use this type as parameter

Functions that use this type as parameter

Functions that return this type

Functions that return this type

  • aux.dpcheck - Creates a subgroup check function that checks card property uniqueness.

Signature

function(Group sg, Effect e, int tp, Group mg) → bool, bool

lua
function(sg,e,tp,mg)

Parameters

  • Group sg

    The subgroup being checked.

  • Effect e

    The effect performing the check.

  • int tp

    The player performing the check.

  • Group mg

    The full group that sg belongs to.

Returns

  • bool

    If the subgroup fulfills the check.

  • bool

    If true, asserts that no larger subgroup in mg will ever fulfill the check.