From 83b87d4eafb0b52dac8669800ea9a643de00c864 Mon Sep 17 00:00:00 2001 From: Agetian Date: Wed, 27 Sep 2017 14:59:07 +0000 Subject: [PATCH] - Fixed the AI cheating with Repeated Barrage Raid ability. git-svn-id: http://svn.slightlymagic.net/forge/trunk@35799 269b9781-a132-4a9b-9d4e-f004f1b56b58 --- forge-ai/src/main/java/forge/ai/ability/ChangeZoneAi.java | 2 ++ forge-gui/res/cardsfolder/r/repeating_barrage.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 d170da87..0bd6868b 100644 --- a/forge-ai/src/main/java/forge/ai/ability/ChangeZoneAi.java +++ b/forge-ai/src/main/java/forge/ai/ability/ChangeZoneAi.java @@ -70,6 +70,8 @@ public class ChangeZoneAi extends SpellAbilityAi { return false; } } + } else if (aiLogic.equals("RaidOnly")) { + return ai.getAttackedWithCreatureThisTurn(); } return super.checkAiLogic(ai, sa, aiLogic); diff --git a/forge-gui/res/cardsfolder/r/repeating_barrage.txt b/forge-gui/res/cardsfolder/r/repeating_barrage.txt index 1fa046ce..7002d873 100644 --- a/forge-gui/res/cardsfolder/r/repeating_barrage.txt +++ b/forge-gui/res/cardsfolder/r/repeating_barrage.txt @@ -2,7 +2,7 @@ Name:Repeating Barrage ManaCost:1 R R Types:Sorcery A:SP$ DealDamage | Cost$ 1 R R | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player | NumDmg$ 3 | SpellDescription$ CARDNAME deals 3 damage to target creature or player. -A:AB$ ChangeZone | Cost$ 3 R R | PrecostDesc$ Raid — | Origin$ Graveyard | Destination$ Hand | ActivationZone$ Graveyard | CheckSVar$ RaidTest | References$ RaidTest | SpellDescription$ Return CARDNAME from your graveyard to your hand. Activate this ability only if you attacked with a creature this turn. +A:AB$ ChangeZone | Cost$ 3 R R | PrecostDesc$ Raid — | Origin$ Graveyard | Destination$ Hand | ActivationZone$ Graveyard | CheckSVar$ RaidTest | References$ RaidTest | AILogic$ RaidOnly | SpellDescription$ Return CARDNAME from your graveyard to your hand. Activate this ability only if you attacked with a creature this turn. SVar:RaidTest:Count$AttackersDeclared SVar:Picture:http://www.wizards.com/global/images/magic/general/repeating_barrage.jpg Oracle:Repeating Barrage deals 3 damage to target creature or player.\nRaid — {3}{R}{R}: Return Repeating Barrage from your graveyard to your hand. Activate this ability only if you attacked with a creature this turn.