Skip to content

Auxiliary.WitchcrafterDiscardCost

Source Code | Auxiliary Functions

Auxiliary function for the discard cost of "Witchcrafter" monsters. Performs the actual discard part, considering a minimum (minc) and maximum (maxc) amount of cards to discard. It also handles cards with EFFECT_WITCHCRAFTER_REPLACE, setting the reason for REASON_COST for those, or REASON_COST+REASON_DISCARD if a card is sent from hand instead.

Signature

Auxiliary.WitchcrafterDiscardCost(any f, int minc, int maxc) → nil

lua
Auxiliary.WitchcrafterDiscardCost(f,minc,maxc)

Parameters


under-construction