Commit Graph

2908 Commits

Author SHA1 Message Date
Agetian
d4c4afcf0b - Added a more conservative version of AILogic PayEnergy for PutCounter AI that only pays energy if the creature is in combat (attacking/blocking) or if there's more energy available than the most expensive energy cost of a permanent SA on the battlefield requires plus whatever the PutCounter SA requires.
- Set this logic for Longtusk Cub and Bristling Hydra.
- TODO: maybe somehow teach the AI to pay energy if it can save the creature from lethal damage from a spell?
2017-06-16 10:30:13 +00:00
Agetian
40acef3479 - Experimental fix: set the zone in GameAction#changeZone for all cards, not only the cards leaving the battlefield. Helps fix e.g. View from Above ending up in two zones at the same time if it's cast while a white permanent is present, but may potentially break something (why was setZone only called in the fromBattlefield conditional branch anyway?) 2017-06-16 04:49:31 +00:00
swordshine
988bda701d - HOU: Add Wildfire Eternal (keyword: Afflict), still need to update ai 2017-06-14 08:17:32 +00:00
Agetian
6c9b19001e - Use ManaAtom.MANATYPES to simplify code for DoubleManaInPool in AF Mana. 2017-06-14 05:50:49 +00:00
Agetian
328a5a745b - Fixed Doubling Cube and Mana Reflection interaction.
- Updated several cards to use C->X format instead of Colorless->X for mana reflection (the latter is outdated and does not work anymore).
2017-06-13 17:56:05 +00:00
Agetian
5f9efe9192 - Improved the AI for attacking in presence of Lightmine Field (logic developed by nefigah). 2017-06-13 16:03:42 +00:00
Agetian
ea65d1de4d - The Siege cycle cards now visualize their chosen mode in the card detail panel. 2017-06-12 13:20:21 +00:00
Agetian
de837d66f9 - Improved dynamic card text generation for AF Charm in cards where the opponent chooses the mode.. 2017-06-12 12:45:06 +00:00
Agetian
e55e64a2eb - Improved dynamic card text generation for AF Charm with repeatable modes. 2017-06-12 12:40:10 +00:00
Agetian
63a7cab596 - Fixed compilation. 2017-06-12 05:48:46 +00:00
Hanmac
e3bf91365e GameAction: remove outdated hidden keyword 2017-06-12 05:09:40 +00:00
Hanmac
64c2ae36e0 PumpEffect: add LeaveBattlefield like in Animate 2017-06-12 05:06:45 +00:00
Hanmac
7f2eb6a384 AnimateEffect: add LeaveBattlefield parameter for Replacement Effect 2017-06-12 04:29:14 +00:00
Hanmac
b9a9fa344f SpellAbilityEffect: add createEffect, used for creating small Effect objects
use it in EffectEffect and DamageBaseEffect
ChangeZoneEffect: do Unearth exile if removed as ReplacementEffect
2017-06-11 18:56:29 +00:00
Hanmac
05e8063b9b ReplaceMoved: update code and add ExcludeDestination 2017-06-11 17:13:51 +00:00
Hanmac
f0abcd9d90 Game: updateLastStateForCard: shorten the code 2017-06-11 13:33:01 +00:00
Agetian
7aad6d8d46 - Do not run the card ID lookup in updateLastStateForCard if the lookup CardCollection does not contain the card in question. 2017-06-11 13:16:31 +00:00
Agetian
12fbbb5a70 - Added a way to update the LKI information in LastStateBattlefield / LastStateGraveyard for a single card.
- Used this mechanism to update the LKI for cards about to leave the battlefield when cumulative upkeep was not paid (fixes Jotun Owl Keeper, Phyrexian Etchings, possibly other similar cards).
2017-06-11 11:57:56 +00:00
Hanmac
7519e22d67 DamageDealBaseEffect: add base Class for Damage Effects: add replaceDying 2017-06-10 16:38:25 +00:00
swordshine
dd2e76ec65 - Archenemy Nicol Bolas: Add a scheme
- Update scripts and add codes for C17 leaks
2017-06-10 14:07:13 +00:00
Hanmac
a39ac85b15 FCollection: can't inherit from Set anymore because the interfaces might colide 2017-06-10 13:24:52 +00:00
Agetian
b39e8acfc6 - Fixed fizzleTriggersOnStackTargeting not properly setting up fizzled triggers on a wrapped SA (fixes Undying triggering twice on the same creature). 2017-06-09 04:03:22 +00:00
Agetian
ead5550376 - Fixed dynamic reminder text generation for KW Storm. 2017-06-08 20:10:10 +00:00
Blacksmith
e8c232b5cb [maven-release-plugin] prepare for next development iteration 2017-06-08 18:39:38 +00:00
Blacksmith
aa52a767f2 [maven-release-plugin] prepare release forge-1.5.64 2017-06-08 18:39:29 +00:00
Hanmac
0a94d1978e Card; hide Prowess Keyword, it is done by the Trigger 2017-06-08 18:35:17 +00:00
Hanmac
241e684ac8 CardFactoryUtil: rework Cascade without Svars 2017-06-08 18:32:22 +00:00
Agetian
f308b17bdf - Fixed a logic error in CardView causing the alternateState of cards to be visualized incorrectly (most commonly seen as transform arrows appearing on non-transforming cards). 2017-06-08 03:49:15 +00:00
Blacksmith
9b3523c943 [maven-release-plugin] prepare for next development iteration 2017-06-07 22:40:35 +00:00
Blacksmith
b11255579c [maven-release-plugin] prepare release forge-1.5.63 2017-06-07 22:40:20 +00:00
Agetian
a590edad78 - "Index out of bounds" error prevention in Gauntlet mode. 2017-06-07 15:12:17 +00:00
Agetian
b2461c73b0 - Reset a split card to its original state when it's returning from the battlefield after being manifested. 2017-06-07 04:02:33 +00:00
Agetian
4c1ca703e0 - Set the Manifested state for the card earlier so that it can be properly picked up and processed in GameAction#ChangeZone. 2017-06-06 14:28:03 +00:00
Hanmac
7587e7a399 CardFactoryUtil: moved Soulbond Trigger to new format 2017-06-05 14:41:39 +00:00
Hanmac
7ebf8837bb PlayerPredicates: add compareByPoison, AI can use it 2017-06-05 05:35:11 +00:00
Hanmac
dc3cd4e0f6 PoisonEffect: refactor Description and Code 2017-06-05 05:34:12 +00:00
Hanmac
57aff1d1b9 AbilityUtils. return PlayerCollection because it has more functions 2017-06-05 05:29:39 +00:00
Hanmac
a4b73ab4e6 Cipher is now a Keyword with a StaticAbility 2017-06-04 02:09:26 +00:00
Hanmac
70914eef47 StaticAbilityContinous: for Trigger that are added, parse their Abilties and add them too 2017-06-03 18:43:22 +00:00
Hanmac
556dacd3fa GameAction: move Zone actions now has Cause Parameter, add it to all other places where it is used 2017-06-03 06:21:31 +00:00
Agetian
923a85e7b9 - Fixed a mistype. 2017-06-02 06:26:30 +00:00
Agetian
357d65518f - Removed an extra empty line. 2017-06-02 06:19:47 +00:00
Agetian
e62e929a71 - Fixing Summary Dismissal, attempt #2. 2017-06-02 06:19:11 +00:00
Hanmac
a21a347d40 Card: add inRealZone property to not use LKI info for that 2017-05-31 19:44:20 +00:00
Agetian
13d817753c - Update trackable Exerted status on calling resetExertedThisTurn. 2017-05-30 07:48:26 +00:00
Agetian
9131164060 - Minor mistype fix in ChangeZoneEffect. 2017-05-29 17:39:35 +00:00
Agetian
4fc8bd2b8e - Show that the card was Exerted this turn in the card detail panel. 2017-05-28 16:05:50 +00:00
Agetian
9c431c9077 - Fixed condition in FlipCoinEffect. 2017-05-28 13:05:46 +00:00
Hanmac
99c7601462 CardFactoryUtil: Absorb now Keyworded better 2017-05-28 06:06:18 +00:00
Hanmac
bbaf9078bd ReplaceDamage: fixed "Prevent$ True" count for Prevention$ Effects too.
make AI use it in damageIfUnblocked
2017-05-27 13:52:23 +00:00