Commit Graph

18 Commits (master)

Author SHA1 Message Date
Leandro Doctors 2733516cb9 Organize imports 2020-01-16 08:21:24 +08:00
melvinzhang 655b767200 add MagicPlayerTriggerEvent that works with 'that player controls' in effect 2017-08-15 12:45:31 +08:00
melvinzhang 3f750aef0c pass MagicChainEventFactory and MagicSourceEvent in MagicEvent 2017-07-28 14:31:14 +08:00
melvinzhang 541b4323c2 temp fix for #1116 by removing choice in rider and add check to detect future cases 2017-05-07 10:05:21 +08:00
melvinzhang ba938ec3e0 allow MagicCondition to check current event 2016-10-04 10:32:45 +08:00
melvinzhang c8f1262b45 remove trailing space from java code 2015-12-31 18:54:52 +08:00
melvinzhang a5764e4404 allow conditional effects in rider, fixes #509 2015-12-02 19:07:11 +08:00
melvinzhang 8966a4dd49 only triggers get MagicEvent.NONE when condition check fails, fixes #519 2015-12-02 11:55:50 +08:00
melvinzhang 95c7def4c8 implement getEvent method inside MagicSourceEvent 2015-12-02 11:54:20 +08:00
melvinzhang 5b44978cc6 remove getEvent(MagicSource, MagicPlayer) that overries getEvent(MagicSource, MagicCopyable) when the ref is a MagicPlayer 2015-05-09 10:29:18 +08:00
melvinzhang a40c178e16 allow specifying player in getEvent 2015-05-09 10:07:33 +08:00
melvinzhang 596c4a6e81 replace MagicEvent.NO_SOURCE with MagicSource.NONE 2015-04-14 17:35:45 +08:00
melvinzhang 9b232fc7b4 replace EFFECT with MagicEventAction 2015-03-26 20:27:37 +08:00
melvinzhang 0507f8fc7e defaults ref to NO_REF instead of source to prevent cycle where card on stack is ref and card on stack contains event 2015-03-11 12:36:14 +08:00
melvinzhang b7f34aad7a allow ref parameter in MagicSourceEvent.getEvent 2015-03-11 11:12:39 +08:00
ShawnieBoy b611eaae48 Import reorganise/remove unused 2014-04-18 22:43:01 +01:00
melvin f3c892a94c fix parsing bug and remove redundant regex parsing by storing matcher in MagicSourceEvent 2014-02-05 14:27:08 +08:00
melvin 3ed512f092 introduce MagicSourceEvent abstraction to remove duplicate code 2013-10-18 14:16:47 +08:00