From 4f4a85926d0e22d8df8d23e0efc9d180b5e571d5 Mon Sep 17 00:00:00 2001 From: Michael Kamensky Date: Wed, 10 Nov 2021 17:06:56 +0300 Subject: [PATCH] - Improve/fix Sludge Monster AI. - Add a line to ANNOUNCEMENTS.txt. --- forge-ai/src/main/java/forge/ai/ability/CountersPutAi.java | 6 ++++++ forge-gui/release-files/ANNOUNCEMENTS.txt | 1 + forge-gui/res/cardsfolder/s/sludge_monster.txt | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/forge-ai/src/main/java/forge/ai/ability/CountersPutAi.java b/forge-ai/src/main/java/forge/ai/ability/CountersPutAi.java index 9c8570e9cef..18f216f31b1 100644 --- a/forge-ai/src/main/java/forge/ai/ability/CountersPutAi.java +++ b/forge-ai/src/main/java/forge/ai/ability/CountersPutAi.java @@ -488,6 +488,9 @@ public class CountersPutAi extends CountersAi { } }); + // Filter AI-specific targets if provided + list = ComputerUtil.filterAITgts(sa, ai, list, false); + if (abCost.hasSpecificCostType(CostSacrifice.class)) { Card sacTarget = ComputerUtil.getCardPreference(ai, source, "SacCost", list); // this card is planned to be sacrificed during cost payment, so don't target it @@ -805,6 +808,9 @@ public class CountersPutAi extends CountersAi { } list = CardLists.getTargetableCards(list, sa); + // Filter AI-specific targets if provided + list = ComputerUtil.filterAITgts(sa, ai, list, false); + int totalTargets = list.size(); sa.resetTargets(); diff --git a/forge-gui/release-files/ANNOUNCEMENTS.txt b/forge-gui/release-files/ANNOUNCEMENTS.txt index 852f6232dd2..a30b36f084a 100644 --- a/forge-gui/release-files/ANNOUNCEMENTS.txt +++ b/forge-gui/release-files/ANNOUNCEMENTS.txt @@ -1,5 +1,6 @@ #Add one announcement per line Get in the discord if you aren't yet. https://discord.gg/3v9JCVr +A new game mode is now available as a separate executable - Forge Adventure, a Shandalar-like overworld adventure. This game mode is currently in its early stage of development, expect improvements and fixes in the future releases. Forge now supports 100% of core and expansion set cards from Limited Edition Alpha to Innistrad: Midnight Hunt. This includes Equinox, Chaos Orb, and Falling Star. Planar Conquest now features a new plane - Forgotten Realms, based on the AFR and AFC sets. Several planes are now available in Planar Conquest in their Classic form, as originally intended by the author, without support for the newer sets and with the original events not modified with newer cards. These planes are available in addition to the contemporary versions of the planes and are marked as "Classic". diff --git a/forge-gui/res/cardsfolder/s/sludge_monster.txt b/forge-gui/res/cardsfolder/s/sludge_monster.txt index ae361693316..fd98178779a 100644 --- a/forge-gui/res/cardsfolder/s/sludge_monster.txt +++ b/forge-gui/res/cardsfolder/s/sludge_monster.txt @@ -4,7 +4,7 @@ Types:Creature Horror PT:5/5 T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPutCounter | TriggerDescription$ Whenever CARDNAME enters the battlefield or attacks, put a slime counter on up to one other target creature. T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigPutCounter | TriggerZones$ Battlefield | Secondary$ True | TriggerDescription$ Whenever CARDNAME enters the battlefield or attacks, put a slime counter on up to one other target creature. -SVar:TrigPutCounter:DB$ PutCounter | ValidTgts$ Creature.Other | TgtPrompt$ Select up to one other target creature | TargetMin$ 0 | TargetMax$ 1 | AITgts$ Creature.nonHorror+OppCtrl+counters_LT1_SLIME | CounterType$ SLIME | CounterNum$ 1 +SVar:TrigPutCounter:DB$ PutCounter | ValidTgts$ Creature.Other | TgtPrompt$ Select up to one other target creature | TargetMin$ 0 | TargetMax$ 1 | AITgts$ Creature.nonHorror+OppCtrl+counters_LT1_SLIME | IsCurse$ True | CounterType$ SLIME | CounterNum$ 1 S:Mode$ Continuous | Affected$ Creature.nonHorror+counters_GE1_SLIME | RemoveAllAbilities$ True | SetPower$ 2 | SetToughness$ 2 | Description$ Non-Horror creatures with slime counters on them lose all abilities and have base power and toughness 2/2. DeckHas:Ability$Counters SVar:HasAttackEffect:TRUE