Commit Graph

30648 Commits

Author SHA1 Message Date
Hanmac
2458a8f73c Cost: moved "You can't sacrifice creatures to cast spells or activate abilities." into Card.canBeSacrificedBy.
also add Property for that.
2016-08-03 10:50:34 +00:00
Hanmac
22c741c7d0 ClashAi: add logic to select player for Clash,
Split cards are not implemented yet.
2016-08-03 09:41:57 +00:00
Hanmac
0bcd83ef48 cards: update "Alternative Cost" cards 2016-08-03 09:18:53 +00:00
Hanmac
cd41977b42 CardFactoryUtil & GameActionUtil: make "Alternative Cost" a better keyword to create SpellAbilities
that does make it work better with MayPlay
2016-08-03 09:16:24 +00:00
Hanmac
ab37dd35c0 CardTraitBase: move isSecondary from Trigger and ReplacementEffect to CardTraitBase to use it for all of them. 2016-08-03 08:44:56 +00:00
Hanmac
47e2a6d897 CardFactoryUtil: improved Bestow a bit 2016-08-03 08:07:11 +00:00
Agetian
8171a9c62a - Preparing the 1.5.56.00x mobile Forge series. 2016-08-03 04:01:53 +00:00
Sol
4c49db4c89 - Adding Advantageous Proclamation (CNS) 2016-08-02 20:08:40 +00:00
Krazy
be014c4237 [maven-release-plugin] prepare for next development iteration 2016-08-02 19:29:16 +00:00
Krazy
40636891c9 [maven-release-plugin] prepare release forge-1.5.55 forge-1.5.55 2016-08-02 19:29:06 +00:00
Krazy
cd6d8357c7 Update CHANGES.txt for release 2016-08-02 19:27:12 +00:00
Hanmac
a381163a12 fixed ComputerUtil & PlayerControllerAi: return false if spell cost could not be paid
that does fix Madness for AI
2016-08-02 18:12:10 +00:00
Hanmac
5f1a05dcf5 Card: fixed description output of Morph, MegaMorph, Madness and Emerge 2016-08-02 14:42:42 +00:00
Hanmac
61348c1d92 Keyword: updated Morph, add MegaMorph and Emerge 2016-08-02 14:39:12 +00:00
Hanmac
287356a7a2 cards: update ChooseType to use MostProminentOppControls instead of MostProminentHumanControls 2016-08-02 12:10:44 +00:00
Hanmac
9708019f7e ComputerUtil: updated chooseSomeType to use better check with removing invalid types first. 2016-08-02 12:07:29 +00:00
Hanmac
a11906c21b ComputerUtilCard: add getMostProminentBasicLandType and a more generic getMostProminentType
change getMostProminentCreatureType to use the generic form too
2016-08-02 11:59:34 +00:00
Hanmac
92a85b6394 Knight of the Mists: add UnlessAI, so AI only pays the cost if it does target its own knight 2016-08-02 11:09:48 +00:00
Hanmac
afd50154d1 SetStateAi: add more logic for transforming, now use always evaluated value check
unblocked should only care about transformed power for now.
thats the next step in making the AI use Elusive Tormentor better.
2016-08-02 10:55:49 +00:00
Agetian
a714ecb3ee - Updated CHANGES.txt a bit. 2016-08-02 09:47:51 +00:00
Hanmac
16a2160598 AiAttackController: add check for GlobalAttackRestrictions used for getting MaxAttack,
when it can only attack with one creature, it should pick the strongest one. 
also moved MustAttack parts a bit.
that fixes AI using the Attack Rule of Silent Arbiter correctly
2016-08-02 08:24:10 +00:00
Agetian
a629afcc3b - Implemented a basic "good" triple gang block. Currently considers a 3-vs-1 block in which only one blocker dies *or* a 3-vs-1 block in which two blockers may die but one of which is a token "good". May not be optimal and may be a bit slow at the moment, please consider improving. 2016-08-02 05:24:14 +00:00
Agetian
56c8b7d306 - Fixed Slayer's Cleaver. 2016-08-02 05:08:00 +00:00
Sol
b498fa5ee1 - Adding some foundation for Cogwork Librarian
- It seems like Booster Drafts weren't changing directions for the middle packs?
2016-08-01 14:45:32 +00:00
excessum
0669c4c0bd - Fixed cannot add to stack bug for AI with Tree of Perdition 2016-08-01 12:38:18 +00:00
Hanmac
88988cfe26 SetStateAI: add checkPhaseRestrictions to check which form would be better for transformation.
thats for Screeching Bat vs Stalking Vampire to check in which form it should attack.
2016-08-01 09:57:04 +00:00
Hanmac
08f41aaeae Card: add getAlternateStateName, which can be used to transform something in its alternate state 2016-08-01 08:04:49 +00:00
Agetian
395eebdf47 - Fixed Fevered Visions, part 2: added a missing SVar reference. 2016-08-01 05:52:34 +00:00
Agetian
9f4a9cc464 - Fixed Fevered Visions. 2016-08-01 05:45:47 +00:00
Hanmac
af7c6b03c4 Chainer, Dementia Master: should overwrite colors 2016-07-31 19:22:05 +00:00
Hanmac
2b19c3fa9f Cost: CostDiscard & CostTapType can now be merged if the Type is the same and amount is numeric in both cases. 2016-07-31 07:44:49 +00:00
excessum
b5d3b86693 - Made AI aware of activated transform abilities in combat 2016-07-31 04:22:39 +00:00
Sol
49fa4886f0 - Fixing small typo 2016-07-30 20:27:37 +00:00
Sol
d30fd6ab21 - Adding count of types to the Tooltip for Graveyards for improved Delirium QOL 2016-07-30 20:05:48 +00:00
Hanmac
7dc03721ff CardFactoryUtil: Persist/Undying using OncePerEffect to prevent it from triggering itself 2016-07-30 19:35:31 +00:00
Hanmac
13b1f01e3b AiCostDescision: add collection for discarded and tapped, to prevent the ai from using the same card twice 2016-07-30 19:01:34 +00:00
Hanmac
325fd94907 AiController: getCardsToDiscard add exclude parameter (like using for already selected for discarding) 2016-07-30 18:59:43 +00:00
Hanmac
443ee670cd ComputerUtilCost: checkDiscardCost: remove from hand what is already selected for discard 2016-07-30 18:58:37 +00:00
Hanmac
29c0f4bfaa ComputerUtil: chooseTapType add exclude parameter (like using for already selected for tapping) 2016-07-30 18:56:50 +00:00
Sol
c3bd44f604 - Fix Spell Description for Unnatural Aggression 2016-07-30 17:48:16 +00:00
Sol
51186c7506 - Welcome 2016 is a legal "set" in standard 2016-07-30 17:25:59 +00:00
Hanmac
187dc5cf2b Karador, Ghost Chieftain: fixed type line 2016-07-30 17:11:44 +00:00
Sol
16cc8565d5 - Fix Gisa and Geralf type line 2016-07-30 15:13:04 +00:00
Hanmac
ca14b1d984 Gisa and Geralf: add card because now scriptable 2016-07-30 14:38:12 +00:00
Agetian
188155d26c - Fixed Impetous Devils. 2016-07-30 14:08:58 +00:00
excessum
46b6131f69 - Updated ChangeZoneAi to use new canPlay() 2016-07-30 13:03:06 +00:00
Hanmac
24002024a9 Hedonist's Trove: add card because now scriptable 2016-07-30 11:55:19 +00:00
Hanmac
208c1e0b24 Aluren: fixed that it works for all Players, restrict it to the affected cards owner. 2016-07-30 11:38:00 +00:00
Hanmac
9468e9e454 Big MayPlay Update, now MayPlayEffect does know about its host card, and the hostcard does count how often the effect is used.
also add MayPlayLimit and MayPlayCardOwner flags.
that makes Karador, Ghost Chieftain scriptable
2016-07-30 11:36:58 +00:00
excessum
7baa99dcbb - Fixed bug where AI suicides attackers into multi-blockers (eg. 2/3 lifelink into two 2/3s) 2016-07-30 08:18:25 +00:00