Commit Graph

22561 Commits

Author SHA1 Message Date
Maxmtg
ab894eeca3 newly declared attackers and defenders are highlighted at once 2013-07-07 14:45:06 +00:00
Maxmtg
bf4e21933c Added another event bus to MatchUI. Attached sound system to this bus
Attack/Block inputs use this bus to request sounds playback and UI updates
SoundSystem - remove mostly duplicated play/playSync calls - now there's one call with a single mandatory parameter.
corrected tabs into spaces somewhere in sound system (why can't Agetian just tune up his IDE?)
2013-07-07 14:26:09 +00:00
Chris
0ea254e94c - Added new card names to changes.txt. 2013-07-07 13:11:53 +00:00
Sloth
94ae69813f - Improved AI using mana sources with Combo Any. 2013-07-07 12:51:03 +00:00
Maxmtg
f6782893e7 GameAction - using a couple of variables to cache toBattlefield, fromBattlefield, extracted method to fix attachments 2013-07-07 12:44:50 +00:00
Maxmtg
54ba881dd2 remove unused import 2013-07-07 12:31:58 +00:00
Sloth
2cd7cece85 - First steps towards AI canceling payment of a SpellAbility when it fails to pay (instead of throwing an error). 2013-07-07 11:56:49 +00:00
Sloth
74e2bcfc37 - More NPE prevention of cards without sets in preparePlayerLibrary. 2013-07-07 11:37:11 +00:00
Maxmtg
d3f5758df8 Fixing typo 2013-07-07 11:08:29 +00:00
swordshine
da052c02e2 - Fixed mana ability (Deathrite Shaman's first ability is not a mana ability) 2013-07-07 09:55:35 +00:00
Agetian
f063f52981 - Properly fixing Discard effect for cards like Last Rites. 2013-07-07 07:53:20 +00:00
swordshine
2646d7e656 - M14: Added Pyromancer's Gauntlet 2013-07-07 07:43:00 +00:00
Agetian
0e22f73d11 - Trying to fix a bug with the DiscardEffect that won't function properly for cards asking to discard more than 1 card (e.g. Last Rites). NOTE: This is an experimental hack, please review line 395 in PlayerControllerHuman, not sure how to properly resolve that part. 2013-07-07 06:28:37 +00:00
swordshine
2d7ada5106 - Fixed a bug that tokens don't move to library 2013-07-07 06:03:56 +00:00
Maxmtg
c8524485bb PlayerController.playSaNoStack - removed obvious parameter (player) 2013-07-06 23:28:37 +00:00
Maxmtg
191a8e4e43 This restores Valacut - Scapeshift combo
Have to figure out how this influences on OpeningHandEffects
2013-07-06 23:16:34 +00:00
Maxmtg
4f3e058d64 Game event log also reports elements from call trace 2013-07-06 22:32:26 +00:00
Maxmtg
da33b4f406 Witch-maw nephilim: trigger is unconditional, the ability is checking for conditions instead 2013-07-06 21:29:55 +00:00
Sloth
d5851fc4ed - Fix for Soul's Fire. 2013-07-06 20:56:49 +00:00
Sloth
de9adadf04 - Another fix for Deadshot. 2013-07-06 20:54:06 +00:00
Sloth
08f1ba8186 - Fixed more cards calculating with LKI values. 2013-07-06 20:45:41 +00:00
Sloth
135239eabe - Fixed Deadshot. 2013-07-06 20:11:55 +00:00
Maxmtg
ec838bb8a1 reverted checkstatic abilities after resolving a subability 2013-07-06 19:38:47 +00:00
Chris
52bc9b6326 - Added new card names to changes.txt. 2013-07-06 12:50:46 +00:00
Maxmtg
e7eff63585 added call to checkStaticAbilities to changeZone - this will take into consideration creatures' static abilities before firing ETB trigger.
removed same calls where they would be duplicate (player.playLand, AbilityUtils.resolveSubAbilities)
2013-07-06 09:22:15 +00:00
Agetian
21222511dd - Added proper AI battlefield conditions for Akoum.
- Minor comment modification.
2013-07-06 09:00:26 +00:00
Agetian
ffb7924585 - Code simplification in RollPlanarDiceAi. 2013-07-06 05:24:26 +00:00
Maxmtg
990f7ab9dc removed some excessive calls to checkStaticAbilities. (keep in mind they are always checked on priority along with state-based actions) 2013-07-05 22:55:23 +00:00
Maxmtg
30f85737c8 Rampage turned into api-based scripted effect
scripted witch_maw_nephilim.txt 2nd ability and removed hardcode
added some syntax sugar in TriggerType.java
2013-07-05 22:06:23 +00:00
Sloth
f1f196585d - Fixed Blood Tyrant. 2013-07-05 21:38:19 +00:00
Sloth
7bbeed304f - Fixed a bug in canPlayAI of ClashAI. 2013-07-05 21:36:12 +00:00
Sloth
bdbe7b25eb - Fixed Vendetta and Devour in Shadow calculating LKI toughness. 2013-07-05 21:32:04 +00:00
Maxmtg
d6e3576203 Alphabetically sorted trigger types 2013-07-05 20:56:04 +00:00
Maxmtg
c0411273a9 Flanking - converted to script (to use Pump API and it's ui updates already set up)
checkStateEffects - removed many calls leaving only the ones clearly stated by rules, in most cases calls replaced by checkStaticAbilities
in checkStateEffects - extracted some method performing certain state actions
2013-07-05 20:40:53 +00:00
Maxmtg
789cae29eb Umbra stalker - converted to script
inlined some chroma-related routines, and related to card list
2013-07-05 19:01:39 +00:00
Agetian
d668d9c3bb - Added some conditions to the AI for rolling a planar die.
- Some of the planes will now be used more intelligently by the AI depending on battlefield conditions.
- Some AI hint fixes for planes.
2013-07-05 18:49:47 +00:00
Maxmtg
4b8effe250 Added exceptions to constructor of PaperCard to prevent creation of illegal instances without set 2013-07-05 18:27:18 +00:00
Maxmtg
896a9a0a23 fix NPE happening at CHand init 2013-07-05 18:23:47 +00:00
Sloth
a28929bc36 - Fixed AI dodging the payment of AlternateAdditionalCost. 2013-07-05 18:13:53 +00:00
Sloth
59606709a6 - Fixed cards without set causing NPE's when foiled. 2013-07-05 18:05:45 +00:00
Sloth
5398d53408 - Added AI support for Fight triggers (Gruul Ragebeast). 2013-07-05 16:25:17 +00:00
Maxmtg
31e272711f Static abilities update: excludes from event cards in hidden zones like library (that won't be drawn anyway)
currentZone field added to card, it's a shortcut used to avoid enumeration of cards in all zones to find the requested one
2013-07-05 16:23:38 +00:00
Maxmtg
b12abc4533 Events are fired when static abilities recalculate 2013-07-05 15:06:15 +00:00
Maxmtg
628430f0e9 Bushido also uses cardscript with API = pump 2013-07-05 13:30:04 +00:00
Maxmtg
1f3501d8de Log_events moved to Game class (as they are submitted there)
Pump and PumpAll effects now fire update card stats event - for both start of effect and end of it.
Exalted effect - refactored to use scripted ability (the script is hardcoded)
toString routines for some events
2013-07-05 13:07:54 +00:00
Agetian
7e3858ef31 - Added a way to deprioritize the AI planar die roll compared to casting spells for mana.
- Made the AI roll the die for some of the planes multiple times (but only after casting spells).
- Some other optimizations and modifications of the plane AI hints.
2013-07-05 12:59:51 +00:00
jsv
b8613c5cdf Fixed Imperiosaur's cost restriction. 2013-07-05 06:37:18 +00:00
Agetian
8b8bb25717 - Added info about the Planechase AI extension to the list of changes. 2013-07-05 05:34:37 +00:00
Agetian
3871508385 - Fixed the AI hint for Grixis. 2013-07-05 05:23:06 +00:00
Agetian
32a5f4389b - Consolidating AI hints for planes in Planechase into a single "AIRollPlanarDieParams" parameter.
- Adding a foundation for the condition specifications in AI hints for planes.
- Code simplification in RollPlanarDiceAi.
2013-07-05 05:20:40 +00:00