Commit Graph

271 Commits

Author SHA1 Message Date
swordshine
90a2e0a9e1 - Fixed some cards 2018-04-19 18:03:47 +08:00
Chris H
ea1770b1a7 Migrate upcoming DOM files 2018-04-16 21:32:59 -04:00
Michael Kamensky
bcc0fc9e00 Merge branch 'AINoncombatantCreatures' into 'master'
Ai noncombatant creatures

See merge request core-developers/forge!221
2018-02-18 09:10:39 +00:00
Michael Kamensky
b5ae52a3b6 Merge branch 'AiNonstacking' into 'master'
AI Nonstacking Permanents

See merge request core-developers/forge!222
2018-02-18 05:54:50 +00:00
Seravy
ead64864f4 Now it actually works and doesn't break the card.
Marked card AI playable.

Note : This also adds a new function to ComputerUtil,that checks if the AI is in danger of being killed, or if it has a same amount of life remaning - useful for future "pay life" AI decisions.
2018-02-13 18:07:51 +01:00
Seravy
8521387312 AI can play Necrologia 2018-02-13 17:40:03 +01:00
Seravy
e04d88977e adding to cards L-Z
Added creatures with low power that have
-abilities that tap for something really valuable like drawing a card
-abilities that usually need to be saved until enemy turn (counter a spell, tap a creature, prevent damage)
-abilities that usually deal equal or more damage if not attacking (prodigal sorcerer, grim lavamancer)
Generally avoided abilities where activating before combat is an acceptable choice and thus the attack decision doesn't come up anyway as the AI already used the ability.
However, this behavior is unacceptable on certain abilities (mostly those with higher mana costs) which should not be used before the end of main 2 as it prevents the AI from actually playing their cards. (like Hanna Ship Navigator)

I suspect this will need quite a bit of improvement in the future but we have to start somewhere.
2018-02-11 22:13:58 +01:00
Seravy
e909cfc744 Adding to cards where needed part 2 2018-02-11 01:49:43 +01:00
Seravy
b51ca84a8f Adding to cards where needed (and removing from cards where it isn't safe to rely on one copy, like Moat) 2018-02-11 00:28:22 +01:00
Seravy
3a9af0480d Improves "NonStackingEffect" Svar behavior for the AI.
The AI will now not play a second copy of these cards if and only if, there is no copy of the card owned by that AI in play, except copies that are enchanted by Auras owned by other players.
Later, a better logic that actually determines whether the enchanting aura removes the relevant ability from the card or not should be added - Warp Artifact will not stop a disk from activating, but Arrest will (if it's a creature).

Note : Only add NonStackingEffect to permanents the AI shouldn't play more than one of at a time if and only if, removal of enchantment is not pontentially leathal to the AI.
For example, do not add to Ensnaring Bridge or Moat, as loss of those allows the enemy to swing with possibly accumulated large armies for likely too much damage.
Those cards will need a different logic, that avoids playing a second copy if and only if the threat the card protects from is already too dangerous.
2018-02-10 23:21:03 +01:00
swordshine
63e2854d7a - It should be a special action to remove the effect of Glass Asp (these effects might be transformed to delayed triggers in the future) 2018-01-27 14:53:27 +08:00
Michael Kamensky
67ab3e1e01 Merge branch 'patch' into 'master'
- Necromancy and its friends now use delayed triggers instead of animated triggers

See merge request core-developers/forge!149
2018-01-26 16:54:50 +00:00
swordshine
af1be79f78 - Necromancy and its friends now use delayed triggers instead of animated triggers 2018-01-26 19:24:29 +08:00
Agetian
21c4e2eeda - Fixed Nissa, Steward of Elements references and AI logic. 2018-01-26 13:36:48 +03:00
swordshine
adf62cc5f5 - Fixed Cauldron Dance 2018-01-22 15:02:52 +08:00
Chris H
4a799cf45f Migrate RIX to appropriate card letter folders 2018-01-13 10:21:23 -05:00
Marek Čtrnáct
135724fab5 Update nesting_wurm.txt 2018-01-05 23:32:11 +00:00
KrazyTheFox
6d5e56f6bf Normalize line endings 2017-12-28 23:40:29 -05:00
Indigo Dragon
abcdc7253e 1. DeckHints Synergy between Trials and Cartouches.
2. Some Play Before Combats.
3. General Deck Hints.
2017-12-05 09:13:05 +00:00
Indigo Dragon
327795855a Reapplying 36129, except this time it works.
Turns out I accidentally changed the Name of liberating_combustion.txt, wrecking everything.
2017-12-04 07:58:52 +00:00
Agetian
b3c5494e74 - Reverted r36129 as requested. 2017-12-04 07:29:52 +00:00
Indigo Dragon
9fc4a247aa EDIT: WHOOPS THIS BORKED EVERYTHING PLS REVERT
Added plenty of DeckHints:Name$, some DeckHints:Color, many DeckNeeds:Name$
Most notably the Planeswalker Deck Into pack exclusive cards eg. [[Chandra, Pyrogenius]] and [[Liberating Combustion]]. New Policy: If a card would refer to another card, each get DeckHints:Name$ of the other.
2017-12-04 07:12:25 +00:00
Agetian
7e6771d550 - [Part 2] Adding support for DamageDone replacement effects and triggers to work with emblems (for cards with ChooseSource). 2017-11-29 07:35:58 +00:00
Agetian
0b025fd0ae - [Part 1] Adding support for DamageDone replacement effects and triggers to work with emblems (for some cards, most other cards would need an extension to ChooseSource and possibly other changes). 2017-11-29 06:48:42 +00:00
Indigo Dragon
8d7c672b94 Minor Text Changes 2017-11-19 05:22:30 +00:00
Hanmac
1761ccffd0 Nahiri the Lithomancer: updated DeckHints and Stoneblade keywords 2017-11-04 11:26:17 +00:00
Agetian
a8d73f6172 - Fix empty lines in scripts: part 2 2017-10-14 14:29:23 +00:00
Agetian
6cb93e51fa - Fix zero cost AB/DB on triggers: letters N and O 2017-10-14 11:17:12 +00:00
Agetian
df480b67c0 - RemAIDeck update: next iteration (the rest of letter N). 2017-10-10 13:55:45 +00:00
Agetian
b183588046 - RemAIDeck update: next iteration (more letter N). 2017-10-10 05:07:47 +00:00
Agetian
553d059113 - RemAIDeck update: next iteration (letter C). 2017-10-08 06:58:55 +00:00
Agetian
c539acb823 - RemAIDeck update: next iteration (Scry with no drawback) 2017-10-02 07:40:36 +00:00
Agetian
a1831ab338 - Hunt for obscure RemAIDecks: removing RemAIDeck in cards that are currently AI playable. Part 1. 2017-10-01 08:16:29 +00:00
Agetian
6f57f56d1d - Ixalan Oracle update: attacks/blocks each combat if able [please revise if possible, a bit of a many-sided modification]. 2017-10-01 07:22:26 +00:00
Agetian
e4fb8c20ac - Added a missing reference to Nest of Scarabs. 2017-09-29 15:28:10 +00:00
Agetian
e112704a63 - Fixed Nissa's Judgment. 2017-09-27 03:51:50 +00:00
Agetian
84a6876265 - Added an experimental option to allow ordering cards going to graveyard when playing with cards that care about graveyard order (Volrath's Shapeshifter and others). Disabled by default. 2017-09-26 19:40:44 +00:00
Agetian
4ea6f9dd6a - Scripts update: use DamageDealtOnce for cards that say "whenever X deals damage" 2017-09-25 07:10:21 +00:00
Agetian
d8027b002d - Script update: DealtCombatDamageOnce -> DamageDealtOnce|CombatDamage$True 2017-09-25 06:58:33 +00:00
Agetian
623cda83d5 - Script update: CombatDamageDoneOnce -> DamageDoneOnce|CombatDamage$True 2017-09-25 06:46:19 +00:00
Agetian
025a201a7d - Convert DamageDone|OnlyOnce to the new trigger DamageDoneOnce. Remove code for DamageDone|OnlyOnce (no longer needed). 2017-09-25 06:41:13 +00:00
Indigo Dragon
bab2b9f528 Changed "CARDNAME can block an additional creature." to CARDNAME can block an additional creature each combat."
Notes: Possible weird interactions when giving a multiblock creature an additional block eg. Equipping a Night Market Guard with echo circlet. Further study required.
2017-09-24 12:33:45 +00:00
Indigo Dragon
5b6031f41d Policy: If a card was printed without a reminder text in a booster expansion or preconstructed deck (eg Commander), it no longer requires reminder text. IMA removes basic reminder texts for serval cards, like the mythic rares archangel_of_thune.txt and thundermaw_hellkite.txt 2017-09-22 08:29:03 +00:00
Agetian
d36fb16b12 - Migrating XLN cards from upcoming to the real folders. 2017-09-19 12:04:06 +00:00
Agetian
c6bae2116a - Added an extra mode to DamageDone trigger (OnlyOnce$ True) that tries to count the damage only once. Currently will do it in combat, but will not yet do it for noncombat simultaneous damage like Aura Barbs (feel free to improve).
- Effectively this replaces the double trigger setup for Enrage and other cards that require such a count (e.g. Fungusaur and friends).
2017-09-16 10:17:14 +00:00
Agetian
b332038722 - Fixed the AI trying to flip Sasaya, Orochi Ascendant endlessly without satisfying its condition.
- Several script fixes from Marek.
2017-09-15 14:08:27 +00:00
Agetian
bd10364d27 - Simultaneous combat damage pass 1: "deals combat damage to X" card update 2017-09-15 05:52:08 +00:00
Agetian
0ef1019d1c - Implemented a simple logic for Aristocrats (Vampire Aristocrat, Bloodthrone Vampire, Nantuko Husk and friends).
- Improved prediction of Infect damage for the AI in shouldPumpCard.
2017-09-09 15:34:35 +00:00
Indigo Dragon
496cc470e2 Update all the Prowl and Reinforce cards from MOR.
They now pretend to be keywords better.
2017-09-03 11:54:55 +00:00
Agetian
1a7a5fe6a8 - Fixed some AB$ Cost 0 -> DB$ declarations in card scripts.
- Fixed Nova Pentacle (the card needs some additional combat AI support though, or the AI will suicide its own creatures if the opponent has nothing on the battlefield).
2017-09-03 08:55:26 +00:00