Duel.CheckReleaseGroupCost
Source Code | Usage Examples | Duel
Functions
Checks if the player can tribute cards on the field, excluding "ex" to activate the effect of a monster while also checking for applied effects of cards like "Lair of Darkness" (behaviour now also implemented in the normal CheckReleaseGroup). If function f is passed, the cards returned by Duel.GetReleaseGroup are filtered based on that function. The function spcheck is a callback function that gets passed the current checked group (sg) as first parameter, the checking player (tp) as second parameter, a group containing opponent's cards affected by EFFECT_EXTRA_RELEASE_NONSUM or EFFECT_EXTRA_RELEASE (exg) and the extra parameters passed to the function (...). The spcheck function has to return 1 or 2 boolean values indicating if the passed group (sg) satisfy the requirements as first return value and as optional second parameter to indicate if no matter how many new cards are added to (sg), the condition will never return true.
Signature
Duel.CheckReleaseGroupCost(int player
, function f
, int minc
, [int maxc
= minc]
, bool use_hand
, function spcheck
, Card|Group|nil ex
, any ...
]) → bool
Duel.CheckReleaseGroupCost(player,f,minc,maxc,use_hand,spcheck,ex,...)
Parameters
int
player
(To be added)
function
f
(To be added)
int
minc
(To be added)
int
maxc
Optional. Defaults to
minc]
.(To be added)
bool
use_hand
Optional.
(To be added)
function
spcheck
Optional.
(To be added)
Card|Group|nil
ex
Optional.
(To be added)
any
...
Optional.
(To be added)