Commit Graph

7692 Commits (3dbf2eaec4ebef67a27976c93003348170e27042)

Author SHA1 Message Date
melvin 24ff6d5729 test Tamiyo's ultimate with Burst Lightning 2013-11-02 09:31:20 +08:00
melvin c3a2c0809b ensure that update to LogBookViewer is performed on EDT 2013-11-02 09:21:39 +08:00
Lodici 52c5469297 - Added new Log options to hide/show scrollbar and switch order in which log messages are displayed (which in turn determines whether a new log message is added to the top or bottom of the list). Options are not saved between sessions yet. 2013-11-01 17:36:55 +00:00
melvin 6d05fb4293 merge change to show dialog when game crashes 2013-11-01 22:21:55 +08:00
melvin 55d10821c4 add missing card filter 2013-11-01 22:19:59 +08:00
Lodici babdfd741d Merge google-code. 2013-11-01 09:55:53 +00:00
Lodici 2b42fee5ed - Update to runtime exception message based on forum feedback. 2013-11-01 09:48:40 +00:00
melvin 26392c98dd support reanimate effect 2013-11-01 17:25:28 +08:00
melvin 44e91f98b9 merge different 'enters with <counter type> <n>' into 'enters with counter <counter type> <n>' 2013-11-01 13:26:02 +08:00
Lodici 3654b9bb88 Now displays a message to user when an exception occurs instead of just bombing out. 2013-10-31 21:25:57 +00:00
melvin f5e628e163 merged UI updates 2013-10-31 20:55:05 +08:00
Lodici 311c5b0c05 - refactoring. 2013-10-31 12:21:01 +00:00
Lodici 8b740451c7 - Set Player/Opponent stats viewers to fixed vertial height of "small". The so-called "small" profile is more than big enough to read and the extra vertical space gained can be used by the log/stack viewer. 2013-10-31 11:47:30 +00:00
Lodici 164534875a - Fix : Restored update() method to LogBookViewer so that Log is updated correctly with Undo and Reset Game actions. 2013-10-31 11:18:16 +00:00
Lodici 0c12639268 Merge google-code. 2013-10-31 10:13:20 +00:00
melvin 30888b4958 test for checking of whether cost on activated abilities can be paid, especially in cases where the ability's mana cost cannot be paid by the permanent's mana ability 2013-10-31 17:24:36 +08:00
Lodici 3fb3aa313e - Splitter now uses textured background. 2013-10-31 08:40:18 +00:00
melvin 18f7362cdf pay costs without choices before those with choices so that {T} is before mana cost to avoid cases where {T} cost cannot be paid as permanent was tapped to pay mana cost 2013-10-31 16:35:47 +08:00
melvin 1a78daa84f replace MagicPayManaCostTapEvent with two separate events 2013-10-31 15:30:33 +08:00
melvin d4c3095d12 add custom canPlay method for MagicPermanentActivation to perform more complex checking such as permanent that needs to tap but already tapped to pay for mana cost 2013-10-31 14:35:15 +08:00
melvin c07e0a62a9 remove final from canPlay so it can be overwritten in subclass 2013-10-31 14:34:04 +08:00
melvin 0a97959943 added record and restore method to MagicGame as convienent wrapper for undoing in a regular and AI game 2013-10-31 14:33:46 +08:00
melvin 0d09ad5923 support 'spirit or arcane effect <effect>' 2013-10-31 11:04:02 +08:00
melvin 4199505e6a replace MagicGainActivation with general activated ability, added support for custom conditions to MagicRuleEventAction 2013-10-31 10:51:50 +08:00
Lodici 6f8c28a90f - Removed logBookButton and textViewButton. 2013-10-30 21:28:30 +00:00
Lodici a39c790ab3 - Added LogBook listener mechanism in order to update LogBookViewer each time a log event is raised. Replaces LogBookViewer update() method. 2013-10-30 21:27:04 +00:00
Lodici bad9654dd2 WIP - Added splitter containing log and stack with stack working bottom to top. 2013-10-30 20:32:28 +00:00
Lodici f678fa0ffb Merge google-code. 2013-10-30 19:24:16 +00:00
Lodici 8234e77854 - Removing quite a lot of redundant code from DefaultResolutionProfile now that LHS of GamePanel uses a layout manager instead of absolute positioning. 2013-10-30 19:04:49 +00:00
Lodici c017f09d26 - Adds an F11 fullscreen option to the View menu. 2013-10-30 13:54:20 +00:00
Lodici ecde40d62c WIP - Mirrors current behaviour but using MigLayout. 2013-10-30 13:44:31 +00:00
Lodici c85df9f237 WIP - Updating GamePanel to use layout manager (MigLayout) instead of absolute positioning (setLayout(null)). The general consensus online is that null layouts should be avoided at all costs and are more trouble than they are worth. A layout manager is much more adaptable to different platforms and resolutions. Plus it will facilitate the implementation of a new log viewer on the LHS. 2013-10-30 11:14:01 +00:00
melvin ddc3384ccc specialize GrowSelf to only handle +1/+1 counters, other counters should use ChargeSelf 2013-10-30 17:30:03 +08:00
melvin 5430402d17 catch exception during loading of card abilities so we can report the card name 2013-10-30 17:29:34 +08:00
melvin 043f0dbf98 replace groovy code with card script 2013-10-30 15:16:53 +08:00
melvin ea803a2e15 support 'put <amount> -1/-1 on <chosen>' 2013-10-30 15:11:05 +08:00
melvin 211ca0fb53 correct regex 2013-10-30 14:48:37 +08:00
melvin 4639577577 fix implementation of grow chosen effect 2013-10-30 14:45:32 +08:00
melvin 527f08022b support putting +1/+1 counter on chosen creature 2013-10-30 14:33:37 +08:00
melvin aa1fa901f1 support 'your end step effect <effect>' 2013-10-30 14:18:37 +08:00
melvin a6e3c735c1 support '<choise> draws <amount> cards.' effect 2013-10-30 11:56:04 +08:00
melvin d013c679e9 replace 'return at end' with more general 'end step effect <effect>' ability 2013-10-30 11:49:18 +08:00
melvin 7536c8c0b5 remove createMay factory method, handle may in create factory method 2013-10-30 10:57:18 +08:00
melvin 8cded0c31a replace groovy code with card script 2013-10-30 10:34:55 +08:00
melvin 45bd4a7161 added 'your upkeep effect <effect>' 2013-10-30 10:23:56 +08:00
melvin 5b4fbbe0fd fix issue with dies trigger and return to hand as this is not a bounce effect but rather a return self effect 2013-10-30 09:43:08 +08:00
melvin 50c7078b93 change hash to return long instead of int 2013-10-29 22:42:57 +08:00
melvin 83360f652d isSpellCardEvent broke as action is not instance of MagicSpellCardEvent when
using MagicRuleEventAction

fixed by putting the logic for moving card to graveyard/exile in resolve
method of MagicCardOnStack

fixes issue 415
2013-10-29 22:31:36 +08:00
melvin 3efd97c38a add filter 2013-10-29 21:51:45 +08:00
melvin 228fd972b1 support 'return from your graveyard to your hand' 2013-10-29 21:29:15 +08:00
melvin d48d2f7fa3 handle case of empty array of keys 2013-10-29 21:11:12 +08:00
melvin 53b12b807f add support for Sacrifice cost 2013-10-29 17:22:00 +08:00
melvin 9b1f5b034b add 'enters kicked effect <effect>' to ability 2013-10-29 17:18:56 +08:00
melvin c481eb8c3c support {-1/-1} as a cost 2013-10-29 17:03:15 +08:00
melvin 3533df7c0f update MurmurHash3.java to infinispan master 2013-10-29 14:38:24 +08:00
melvin 722909200c move may choice into trigger 2013-10-29 14:01:05 +08:00
melvin 3a1653280f extend the translator up to ten 2013-10-29 13:43:04 +08:00
melvin f82559c972 fix parser for MillChosen 2013-10-29 13:25:05 +08:00
melvin 58eb319482 handle pattern starting with 'PN may have' 2013-10-29 13:21:23 +08:00
melvin 86374d7177 replace groovy code with card script 2013-10-29 11:54:10 +08:00
melvin 7034a35bbf replace groovy code with card script 2013-10-29 11:51:04 +08:00
melvin 35409b332b bump version to 1.44 2013-10-29 11:44:35 +08:00
Lodici 856e6336e2 Fix : GameDuelViewer components not re-sizing gracefully. 2013-10-29 11:07:40 +08:00
Lodici 0948d9b8d4 replace the up/down arrow with the actual avatar of the player whose turn it is 2013-10-29 11:07:09 +08:00
Lodici 617eb69c27 make the TabSelector buttons appear kind of translucent on the GameDuelViewer component 2013-10-28 20:58:24 +08:00
melvin e69e6fcd8d support 'Sacrifice a Cleric' as a cost 2013-10-28 17:25:03 +08:00
melvin 2b8a3e0ee6 support target loses and you gain life pattern 2013-10-28 17:17:33 +08:00
melvin e6f38928fa support target loses life pattern 2013-10-28 17:12:07 +08:00
melvin 3061d8dde9 add comment on possible issue with unpayable mana cost 2013-10-28 14:38:13 +08:00
melvin fda467714a source of event may be MagicCardOnStack instead of MagicPermanent, therefore should use getSource() 2013-10-28 13:09:36 +08:00
melvin f32d7fbfb8 replace calls to MagicDestroyTargetPicker constructor with reference to constants 2013-10-28 11:30:35 +08:00
Lodici 49ff193cbe switch PhaseStepViewer from FlowLayout to MigLayout, fix for the border painting on the GameDuelViewer titlebar. 2013-10-28 11:04:31 +08:00
melvin 0e5d8be635 replace groovy code with ability in card script 2013-10-27 20:57:40 +08:00
melvin db7e96563c replace groovy code with ability in card script 2013-10-27 20:36:17 +08:00
melvin d5bf80816b replace groovy code with ability in card script 2013-10-27 20:25:03 +08:00
melvin 3530c049b1 if description does not start with target/an, treat as non targetted choice 2013-10-27 13:41:45 +08:00
melvin 1dbb09e1f2 move checking for target/a/an from MagicTargetFilterFactor to MagicTargetChoice 2013-10-27 13:29:44 +08:00
melvin 6a70303b36 match patterns in a case insensitive way 2013-10-27 11:28:50 +08:00
melvin d9aed8041d move CounterUnless before Counter as it is more specific 2013-10-27 11:10:41 +08:00
melvin 012bd1eb7a support counter unless pattern 2013-10-27 11:00:21 +08:00
melvin 0b20bba7ab switch from BoxLayout to FlowLayout to automatically center the phase/step indicators and simplify mapping from phase step to label 2013-10-27 10:20:18 +08:00
Lodici 2012a48bbd added widget to show order of phases/steps, with the current phase/step highlighted 2013-10-27 09:46:43 +08:00
Lodici 85ec1d5ad8 added option to show card popup using mousewheel instead of an automatic delay. 2013-10-27 09:25:33 +08:00
melvin 104860e5fd completed Frenzied Tilling 2013-10-26 20:57:48 +08:00
melvin 9ec21d978c added constructor to customize description 2013-10-26 20:47:12 +08:00
melvin 0ac475c5ca replace play once restriction on gain ability with condition that SN does not have ability 2013-10-26 14:11:53 +08:00
melvin 5a2ca77a3f added HasSubType and NotSubType factory method 2013-10-26 09:56:13 +08:00
melvin 96f2937c02 add condition to check that there is an equipped creature 2013-10-26 08:52:51 +08:00
melvin 2325a318e8 get ability flags direct from MagicCard 2013-10-25 15:10:57 +08:00
melvin b9284cebaa get subtype flags direct from MagicCard 2013-10-25 15:07:49 +08:00
melvin 9df976f647 rename MagicEntersExileCreatureOrSacrificeTrigger to MagicChampionTrigger 2013-10-25 13:38:10 +08:00
melvin e809a2d692 execute WhenChampioned trigger 2013-10-25 13:36:28 +08:00
melvin 7729a2d1b9 made source, permanent public so that it can be read by trigger 2013-10-25 13:36:09 +08:00
melvin 386961f1a5 replace getExiledCards().getCardAtTop() with getExiledCard() 2013-10-25 13:35:50 +08:00
melvin 921b545fb8 added WhenChampioned trigger type 2013-10-25 13:35:27 +08:00
melvin f95214cd12 added getExiledCard method to MagicPermanent to simplify case where there is only one card 2013-10-25 13:20:51 +08:00
melvin 5531df645b added HAS_EXILED_CREATURE_CARD, correct condition in Duplicant 2013-10-25 12:04:44 +08:00
melvin 2f85b956ca simplify code to use new MagicCastFreeCopyAction 2013-10-25 11:38:44 +08:00
melvin fb372ce443 added HAS_EXILED_CARD condition 2013-10-25 11:37:30 +08:00
melvin a62682cebd made getSubTypeFlags public so that it can be used by groovy script 2013-10-24 16:13:34 +08:00