Commit Graph

26 Commits (2733516cb9cdad7ac4cef98b819d4d01846e5c66)

Author SHA1 Message Date
melvinzhang 91605aa3c1 replace filter generators with filter parsers 2018-04-01 12:36:38 +08:00
Ada Joule 12d2845018 Fix cards, negative amount, search from anywhere to location (#1475)
* Rename `MagicAmountParser.getX` to `getXSign`

* Fix bug in Deathgorge Scavenger

* Add `MagicAmount.getPositiveAmount`

* Use `getPositiveAmount` where appropriate

* Correct `getPositiveAmount(MagicEvent)`

* Fix sacrifice choice in Heart-Piercer Manticore

* Change `MagicSearchToLocationEvent` to search from anywhere instead of
just library

* Add missing `stream()` call

* Add executeEvent in Entrancing Melody

* Fix missing new

* Fix Search for Azcanta

* Remove getPositiveAmount special case

* Revert countEachProduct back

* Fix error in Search for Azcanta
2018-02-23 09:38:41 +08:00
melvinzhang 5b6cd043a2 add amount: its toughness 2017-09-23 20:23:45 +08:00
melvinzhang a74c63b465 add amount: RN's power, closes #416 2017-08-25 09:45:39 +08:00
melvinzhang bbbdcac9ef add override annotation to overridden methods 2017-06-17 11:19:03 +08:00
ShawnieBoy 430d27c55f add 'experience counters you have' to Amount Parser 2017-01-27 05:30:16 +00:00
melvinzhang 8719b403df add amount 'the highest converted mana cost among permanents you control' 2016-09-05 13:54:32 +08:00
melvinzhang 41abf64add add amount 'the greatest power among creatures you control' 2016-06-19 11:55:20 +08:00
melvinzhang 7c8437e45b add amount 'your devotion to <color>' 2016-06-13 11:02:55 +08:00
melvinzhang 8e280610e5 use the same getAction method for PumpX and WeakenX 2016-06-05 12:06:58 +08:00
melvinzhang 571c587109 replace custom constant Players with Constant(2) 2016-01-28 22:40:22 +08:00
ShawnieBoy 5af1b09e01 add 'each player' as an Amount 2016-01-28 14:35:49 +00:00
ShawnieBoy bf86fd5715 optimise imports 2016-01-23 13:11:07 +00:00
melvinzhang c8f1262b45 remove trailing space from java code 2015-12-31 18:54:52 +08:00
melvinzhang b22533a492 add amount '-X' 2015-12-23 23:11:26 +08:00
melvinzhang a57e9a4ac5 generalize Number regex to match number as English words 2015-12-13 22:29:38 +08:00
melvinzhang d7c02513f3 add Number and XCost to supported amount syntax 2015-12-13 13:49:30 +08:00
melvinzhang 3788601a96 support amount "color among permanents you control" 2015-05-28 10:24:54 +08:00
melvinzhang 262c56166c replace groovy code with card script 2015-05-22 11:41:11 +08:00
melvinzhang e31f423586 include player in MagicAmount.getAmount 2015-05-19 13:16:02 +08:00
melvinzhang fdacdb7aba generalize ItsPower to allow "SN's power" 2015-05-17 09:07:36 +08:00
melvinzhang c484ac7248 handle 'the number of' in build 2015-05-16 21:02:23 +08:00
melvinzhang 65159b6c58 support 'SN deals damage equal to [value] to [target]' 2015-05-16 15:32:24 +08:00
melvinzhang 2d2331dc7e add Domain, Equipment, Aura, CounterOnSN to MagicAmountParser 2015-05-16 13:47:51 +08:00
melvinzhang b4badac01f replace MagicTargetFilterFactory.Target with MagicAmountParser.build 2015-05-16 13:47:51 +08:00
melvinzhang 1ac3a6edde introduce concept of MagicAmount to determine a number from a MagicSource and associated MagicAmountFactory and MagicAmountParser 2015-05-16 13:47:51 +08:00