Commit Graph

6840 Commits (a44ed1d3b3b59a25ebd5dcb2e4307d1394b94786)

Author SHA1 Message Date
melvin a44ed1d3b3 simplify rule for Effect by adding ', then ' to SEP 2012-12-04 17:35:01 +08:00
melvin 91ab5d16c4 merge one and many for PutTokenAction 2012-12-04 17:32:05 +08:00
melvin 41e4389853 merge rules for EntersWithCounter 2012-12-04 17:31:22 +08:00
melvin 3a90e6fd9b split DamageRestriction from PreventAction 2012-12-04 17:29:20 +08:00
melvin 43a37472b0 split BounceVerb and BounceLocation from BounceAction 2012-12-04 17:24:47 +08:00
melvin d8605fa7c8 merge rules for MillAction 2012-12-04 17:21:52 +08:00
melvin 090331a515 simplify PoisonAction 2012-12-04 17:19:58 +08:00
melvin 058882e972 split SPACE out from terminal 2012-12-04 14:54:59 +08:00
melvin d51a36032c update parsable.txt 2012-12-04 14:42:52 +08:00
melvin 711e161fa0 simplify RestrictedPermanentCombination using SEP 2012-12-04 14:40:58 +08:00
melvin de45b0942b simplify ManaSource and ColorSpec using SEP 2012-12-04 14:39:30 +08:00
melvin 3a1a30a60a add SEP rule 2012-12-04 14:36:47 +08:00
melvin e368ce0924 split Counter and CounterVerb from ChangeCounterAction 2012-12-04 14:29:10 +08:00
melvin 321d067334 split out SPACE from Destory*Action 2012-12-04 14:00:13 +08:00
melvin 4b41887a35 use Card rule instead of terminals 2012-12-04 13:57:25 +08:00
melvin 61be9445a0 rename *Change to *Verb, split out ChangeLifeVerb from ChangeLifeAction 2012-12-04 13:55:18 +08:00
melvin 82f6db0cb0 split GainChange from GainAction 2012-12-04 13:51:12 +08:00
melvin afa6641899 unify rules for DrawAction 2012-12-04 13:36:36 +08:00
melvin 135ea2932b split out SPACE from terminal 2012-12-04 13:34:05 +08:00
melvin 6f3c1dc785 replace space from terminals in GainAction 2012-12-04 11:00:00 +08:00
melvin 6f57f39c0d added Makefile for parser 2012-12-03 20:47:21 +08:00
melvin 8ee0ee4a87 added code to generate the syntax tree 2012-12-03 20:46:27 +08:00
melvin b5de3d0c32 factor PermanentState out of ChangeStateAction 2012-12-02 22:18:27 +08:00
melvin 9ea24c725f Added tag 1.32 for changeset 258d3e0ac135 2012-12-01 21:52:51 +08:00
melvin 02e2317753 added fixes for 1.32, updated card contributors 2012-12-01 09:01:42 +08:00
melvin a761e3694d allow additional effects for additional cost 2012-11-29 21:54:59 +08:00
melvin 982e626ea9 added additional cost, and at the beginning of next turn's upkeep to duration 2012-11-29 20:40:27 +08:00
melvin 870ac2c88c updated cubes 2012-11-29 15:07:06 +08:00
melvin f1102d527c added stub for README and updated version number to 1.32 2012-11-29 15:06:05 +08:00
melvin 3521803877 simplify getCostEvent 2012-11-29 13:26:31 +08:00
melvin 3c152a890e move getCostEvent logic from MagicCardActivation to MagicCardDefinition 2012-11-29 10:27:27 +08:00
melvin 7655d3d3b8 Only auto skip combat phases if stack is empty.
Fixes issue 285.
2012-11-23 17:05:26 +08:00
melvin 9fddfa7f76 show the phase 2012-11-23 17:00:26 +08:00
melvin bb98826662 rename isSuccessful to isValid 2012-11-22 17:54:35 +08:00
melvin 47832b25ec remove permanent's statics and triggers as a delayed action, so that enter the
graveyard triggers of dying creatures trigger correctly.

fixes issue 300.
2012-11-22 17:10:40 +08:00
melvin 7931c41789 fixed Restoration Angel able to return tokens by checking whether card removal
from exile is successful

fixes issue 301
2012-11-21 20:39:09 +08:00
melvin 6a9edc8a53 Orim's Thunder does nothing if initial target is invalid, as it is not possible to obtain the converted mana cost of an invalid target 2012-11-20 15:43:34 +08:00
melvin 0a0017332d remove logs after creating crash.txt 2012-11-20 15:40:16 +08:00
melvin 5964a51cd5 existence of $ in test should be checked with indexOf >= 0 instead of indexOf > 0 2012-11-19 22:18:54 +08:00
melvin 04c4dbfa95 use for loop to handle management of idx 2012-11-19 22:07:45 +08:00
melvin 7e9055c558 fixed replaceChoices so that it can work with $ at end of the description 2012-11-19 21:59:53 +08:00
melvin 9aaae5cd5f Rupture Spire was able to pay for itself, fixed by making sure that comes into play trigger that does not use the stack always happen before those that use the stack 2012-11-19 21:01:02 +08:00
melvin 684a4b96bb make workers local to the method 2012-11-17 21:12:32 +08:00
melvin a3f1499216 reduce random testing to 10000 games 2012-11-17 21:11:51 +08:00
melvin 6dc9d0695c added assert to check that MagicAddEventAction undo correctly 2012-11-17 13:13:55 +08:00
melvin 0a0364250f remove use of this by changing name of parameter to not clash with name of member 2012-11-16 12:15:41 +08:00
melvin 67240753a3 move update from GameController to MagicPhase and MagicGame as update to the game state should be handled by MagicGame itself so it works the same in AI simulation and real game 2012-11-16 11:55:24 +08:00
melvin 877beaee6c removed usused exception, simplified code 2012-11-15 22:48:42 +08:00
melvin 34038194fc use different AIs in test 2012-11-15 22:47:55 +08:00
melvin e1c57c985d make sure no pending actions before update, do update after check state 2012-11-15 10:26:22 +08:00