Commit Graph

21927 Commits

Author SHA1 Message Date
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
Maxmtg
fadaedc382 excessive calls to SBE check removed 2013-07-05 05:19:14 +00:00
Agetian
1772faae3f - Restructured the logic of AI planar die rolls a little bit.
- Added a way to specify the minimum turn in which it is viable to start rolling a planar die for a particular plane. Added this setting to some planes which require a bit more context on the battlefield before their Chaos rolls start to make sense.
- Added an AI profile variable specifying the minimum turn in which the AI will start rolling the planar die in general unless the plane has an override specified (default AI - on its second turn, reckless AI - on its first turn).
2013-07-04 18:05:07 +00:00
Sloth
37d4245363 - Fixed Soul's Fire. 2013-07-04 16:41:04 +00:00
Sloth
2e8bb882eb - Fixed AnimateAi. 2013-07-04 16:09:15 +00:00
Agetian
73834a4455 - Added an extra break to the planar die AI logic (so that part doesn't break inadvertently with further changes). 2013-07-04 15:48:55 +00:00
Agetian
abf7382520 - Fixed the logic for the AI planar die roll chance.
- Added an ability to set a chance for the AI hesitating to roll a planar die (default AI at 10%, reckless AI at 0%).
2013-07-04 15:47:32 +00:00
Agetian
6ebfe9b630 - Adding AI hint SVars to Planechase plane cards. Most planes are set to "roll once each turn" for the AI right now, which seems to work fine for a very basic AI (better than nothing). Dangerous or unpredictable planes like Academy of Tolaria West, Isle of Vezuva, Kharasha Foothills, Minamo, Takenuma, Windriddle Palaces are currently set to "never roll" for the AI. Feel free to expand. 2013-07-04 15:40:08 +00:00
Sloth
310577f0c2 - Improved checkSacrificeCost AI saccing lands. 2013-07-04 15:31:27 +00:00
Agetian
2fe6482730 - Modified the default AI profile to account for the new properties as well as for the change of the mulligan threshold property name.
- Added a new AI profile (Reckless) that mulligans more aggressively and rolls planar dice more aggressively.
2013-07-04 15:02:39 +00:00
Sloth
10c285f081 - Added info about chosen player and hauntings to CardDetailPanel. 2013-07-04 15:02:06 +00:00
Agetian
9d1b5833a9 - Minor fixes to the planar dice roll AI.
- Default max rolls per turn and chance to roll are now tied to AI profile properties.
2013-07-04 15:01:51 +00:00
Agetian
eb1234832e - Max AI planar die rolls now correctly check for the number of planar die rolls instead of spell ability activations. 2013-07-04 14:36:02 +00:00
Agetian
3eac899af5 - Minor code cleanup. 2013-07-04 14:24:35 +00:00
Agetian
5195708028 - Fixed the random chance for AI planar die rolls. Removed a debug line. 2013-07-04 14:17:28 +00:00
Agetian
00977986df - Default max number of planar die rolls per turn for the AI is 1. The AI will prefer to roll the planar die in Main 2 unless the AIHintRollDieInMain1:True AI hint SVar is set. 2013-07-04 14:10:28 +00:00
Chris
a5887f7dd6 - Added new card names to changes.txt. 2013-07-04 12:18:06 +00:00
Maxmtg
05cc118282 updated library creation code to generate a single event for the whole library (instead of events on per-card basis) 2013-07-04 09:41:42 +00:00
Maxmtg
cb42cf6ceb added event 'card state changed' to un-animate command 2013-07-04 09:34:40 +00:00
Agetian
8f4dd0225b - Added an override for chkAIDrawback in RollPlanarDiceAi in case it may be necessary in the future. 2013-07-04 08:14:04 +00:00
Maxmtg
e15e7d5ecc Fix possible NPE 2013-07-04 08:11:27 +00:00
Agetian
02d9eaa21b - Renamed a SVar in RollPlanarDiceAi for consistency. 2013-07-04 08:09:50 +00:00
Agetian
982a1c1fd3 - Renamed the SVars for RollPlanarDiceAi, added a possibility to define the maximum number of rolls per turn for the AI. 2013-07-04 08:05:11 +00:00
Sloth
d2067be9d1 - Possible fix for NPE in getCardsAddedThisTurn (wasn't able to reproduce it, so can't check whether it's fixed). 2013-07-04 08:03:13 +00:00
Agetian
2a46a6a9d0 - Added the foundation of the AI for rolling planar dice. By default it does nothing and behaves as the old functionality (never roll the planar die). SVars can be specified signaling if and how often the AI should roll the planar die. Currently limited as I have no idea how to make the AI, for instance, to only use the ability to roll the die once per turn. Feel free to expand this AI as necessary. 2013-07-04 07:30:32 +00:00
Agetian
816c5bb040 - Sound System: fixed the "life loss" sound playing when the player gains life.
- Sound System: added a separate sound (linked to the file "life_gain.wav") for when the player gains life.
2013-07-04 06:37:52 +00:00
jsv
356d9170f0 A small fix for Starfire 3 duel deck (wrong header line resulting in NPE) 2013-07-04 06:31:25 +00:00
swordshine
0d5afe48a8 - M14: Added Bogbrew Witch, Bubbling Cauldron, Festering Newt,, Kalonian Hydra, and Syphon Sliver 2013-07-04 00:27:46 +00:00
Sloth
0eac173451 - Added some SVars to the denizens. 2013-07-03 20:42:03 +00:00
moomarc
355c2e78ec - Added Fractured Powerstone 2013-07-03 19:05:49 +00:00
Agetian
4722471b08 - Specifying which sets always have a foil card in the common slot in boosters. 2013-07-03 19:03:38 +00:00
Agetian
1eed542f46 - Adding a field to specify whether the booster has a foil always in the common slot (FoilAlwaysInCommonSlot=True) or in the slot belonging to the rarity of the card (FoilAlwaywsInCommonSlot=False). 2013-07-03 19:02:44 +00:00
jendave
bb1444b7f9 Bump freemarker dep. Start work on new osx profile. 2013-07-03 18:28:51 +00:00
Maxmtg
4c7ab1a47f rename field in CardDamagedEvent
fix possible "weird NPE" at CMatchUI.java:344
2013-07-03 18:10:02 +00:00
Chris
b67a84800b - Added new card names to changes.txt. 2013-07-03 12:26:23 +00:00