Cost.SelfTribute
Source Code | Usage Examples | Cost Functions
A baseline cost function used for effects that Tribute the activating card itself as cost, such as You can Tribute this card (you control/from.../etc); ... (e.g. "Kaibaman").
aliases: deprecated, aux.selfreleasecostaux.SelfReleaseCost, aux.SelfTributeCost, Cost.SelfRelease
Signature
Cost.SelfTribute(Effect e, int tp, Group eg, int ep, Group ev, Effect re, int r, int rp, int chk) → bool
Cost.SelfTribute(e,tp,eg,ep,ev,re,r,rp,chk)Parameters
Effect
eThe effect being activated.
int
tpThe player activating the effect.
Group
egA group of cards associated to the event that prompted the effect activation. The specifics of this group vary depending on the event code.
int
epThe player associated to the event that prompted the effect activation.
Group
evA value associated to the event that prompted the effect activation. The specifics of this value vary depending on the event code.
Effect
reThe effect that caused the event that prompted the effect activation.
int
rComposite Reason value of the event that prompted the effect activation.
int
rpThe player that caused the event that prompted the effect activation.
int
chkMust be
0when checking if the cost can be paid, and1when performing the cost.