Page 1 of 1

Costs: GainLife updated syntax

PostPosted: 22 Jan 2013, 07:04
by Max mtg
Hi, I've commited r19122 which among other things replaces cost syntaxes "OthersEachGainLife" and "OppGainLife" with a more unversal model:
Code: Select all
GainLife<N/Selector/M>
N - number of lives to gain
Selector gets passed to the method isValid() of each player in game (use same syntax as for target selection here, eg: Player.Other). Matching players are considered valid targets.
M - number of players to apply cost to. Can be either a number or asterisk (*) meaning ALL players matching the selector. If omitted, M defaults to 1.

Re: Costs: GainLife updated syntax

PostPosted: 22 Jan 2013, 07:07
by Max mtg
The known cards taking advantage of this are:
/trunk/res/cardsfolder/i/invigorate.txt
/trunk/res/cardsfolder/r/reverent_silence.txt
/trunk/res/cardsfolder/r/roar_of_jukai.txt
/trunk/res/cardsfolder/s/skyshroud_cutter.txt