- added maxCast and maxPlay abilities, this deprecates the following abilities: nospells,nocreatures,onlyonespell,land I usually don't like to deprecate abilities, but the existing ones, despite having easy to remember names, were really not flexible enough. If you want to use these old keywords, instead use: -- nospells => maxCast(*)0 -- onlyOneSpell => maxCast(*)1 --nocreatures => maxCast(creature)0 --land:1 => maxplay(land)+1 note maxPlay and maxCast. They follow similar rules, but maxPlay monitors the number of cards that are going on the Battlefield, while maxCast monitors the stack. In most cases, maxCast should be the one to use, but lands are a special case because they go directly to play. I unfortunately cannot guarantee I didn't break anything, especially in the AI, but the test suite passes ,and I added a few additional tests yesterday and today, to feel more confident about the change. next step is removing the creatures keywords that do the same kind of thing (cantcast, etc...) and replace them with maxCast
28 lines
406 B
Plaintext
28 lines
406 B
Plaintext
#Slience: Opponent cannot cast spells this turn
|
|
[init]
|
|
firstmain
|
|
[player1]
|
|
manapool:{G}{G}
|
|
inplay:mountain
|
|
hand:grizzly bears,raging golblin
|
|
[player2]
|
|
inplay:plains
|
|
hand:Silence
|
|
[do]
|
|
Grizzly Bears
|
|
no
|
|
yes
|
|
plains
|
|
Silence
|
|
endofinterruption
|
|
mountain
|
|
Raging goblin
|
|
[assert]
|
|
firstmain
|
|
[player1]
|
|
inplay:mountain,Grizzly bears
|
|
manapool:{R}
|
|
[player2]
|
|
inplay:plains
|
|
graveyard:Silence
|
|
[end] |