From 4ceb3d52ba79c320f4e5e15c88d031e5184b685e Mon Sep 17 00:00:00 2001 From: Agetian Date: Sun, 24 Sep 2017 15:01:58 +0000 Subject: [PATCH] - A somewhat less confusing Boneyard Parley AI. git-svn-id: http://svn.slightlymagic.net/forge/trunk@35744 269b9781-a132-4a9b-9d4e-f004f1b56b58 --- forge-ai/src/main/java/forge/ai/ability/ChangeZoneAi.java | 2 +- forge-gui/res/cardsfolder/b/boneyard_parley.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forge-ai/src/main/java/forge/ai/ability/ChangeZoneAi.java b/forge-ai/src/main/java/forge/ai/ability/ChangeZoneAi.java index 445a4ee5..d170da87 100644 --- a/forge-ai/src/main/java/forge/ai/ability/ChangeZoneAi.java +++ b/forge-ai/src/main/java/forge/ai/ability/ChangeZoneAi.java @@ -1011,7 +1011,7 @@ public class ChangeZoneAi extends SpellAbilityAi { } - if (!sa.hasParam("AITgts") || sa.getParam("AITgts").contains("OppCtrl")) { + if (!sa.hasParam("AITgtOwnCards")) { list = CardLists.filterControlledBy(list, ai.getOpponents()); list = CardLists.filter(list, new Predicate() { @Override diff --git a/forge-gui/res/cardsfolder/b/boneyard_parley.txt b/forge-gui/res/cardsfolder/b/boneyard_parley.txt index 46a8c8f8..33c9c78a 100644 --- a/forge-gui/res/cardsfolder/b/boneyard_parley.txt +++ b/forge-gui/res/cardsfolder/b/boneyard_parley.txt @@ -1,7 +1,7 @@ Name:Boneyard Parley ManaCost:5 B B Types:Sorcery -A:SP$ ChangeZone | Cost$ 5 B B | Origin$ Graveyard | Destination$ Exile | TargetMin$ 0 | TargetMax$ 5 | TgtPrompt$ Select up to five target cards in graveyards | ValidTgts$ Card.Creature | RememberTargets$ True | SubAbility$ DBTwoPiles | AITgts$ Card.Creature | AIMinTgts$ 3 | SpellDescription$ Exile up to five target creature cards from graveyards. An opponent separates those cards into two piles. Put all cards from the pile of your choice onto the battlefield under your control and the rest into their owners' graveyards. +A:SP$ ChangeZone | Cost$ 5 B B | Origin$ Graveyard | Destination$ Exile | TargetMin$ 0 | TargetMax$ 5 | TgtPrompt$ Select up to five target cards in graveyards | ValidTgts$ Card.Creature | RememberTargets$ True | SubAbility$ DBTwoPiles | AITgtOwnCards$ True | AIMinTgts$ 3 | SpellDescription$ Exile up to five target creature cards from graveyards. An opponent separates those cards into two piles. Put all cards from the pile of your choice onto the battlefield under your control and the rest into their owners' graveyards. SVar:DBTwoPiles:DB$ TwoPiles | Defined$ You | DefinedCards$ Remembered | Separator$ Opponent | ChosenPile$ DBBattlefield | UnchosenPile$ DBGrave SVar:DBBattlefield:DB$ ChangeZone | Defined$ Remembered | Origin$ Exile | Destination$ Battlefield | GainControl$ True | SubAbility$ DBCleanup SVar:DBGrave:DB$ ChangeZone | Defined$ Remembered | Origin$ Exile | Destination$ Graveyard | SubAbility$ DBCleanup