From 1d2f827d006dd5c65318dae4deb9109d360ffc52 Mon Sep 17 00:00:00 2001 From: Sloth Date: Tue, 8 Jan 2013 17:52:34 +0000 Subject: [PATCH] - Added Spectral Searchlight fix by swordshine. --- res/cardsfolder/s/spectral_searchlight.txt | 6 ++++-- src/main/java/forge/Card.java | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/res/cardsfolder/s/spectral_searchlight.txt b/res/cardsfolder/s/spectral_searchlight.txt index eaeb74972f3..e3572e4c142 100644 --- a/res/cardsfolder/s/spectral_searchlight.txt +++ b/res/cardsfolder/s/spectral_searchlight.txt @@ -1,8 +1,10 @@ Name:Spectral Searchlight ManaCost:3 Types:Artifact -Text:(NOTE: "Tap Choose a player. That player adds one mana of any color he or she chooses to his or her mana pool." not implemented.) -A:AB$ Mana | Cost$ T | Produced$ Any | SpellDescription$ Add one mana of any color to your mana pool. +Text:no text +A:AB$ ChoosePlayer | Cost$ T | Defined$ You | Choices$ Player | ChoiceTitle$ Choose an player | SubAbility$ DBMana | SpellDescription$ Choose a player. That player adds one mana of any color he or she chooses to his or her mana pool. +SVar:DBMana:DB$ Mana | Produced$ Any | Defined$ ChosenPlayer +SVar:RemAIDeck:True SVar:Rarity:Uncommon SVar:Picture:http://www.wizards.com/global/images/magic/general/spectral_searchlight.jpg SetInfo:RAV|Uncommon|http://magiccards.info/scans/en/rav/271.jpg diff --git a/src/main/java/forge/Card.java b/src/main/java/forge/Card.java index 0accbc218d8..e47cc5c79d8 100644 --- a/src/main/java/forge/Card.java +++ b/src/main/java/forge/Card.java @@ -2619,8 +2619,9 @@ public class Card extends GameEntity implements Comparable { for (final SpellAbility a : this.getManaAbility()) { // if a mana ability has a mana cost the AI will miscalculate + // if there is a parent ability the AI can't use it final Cost cost = a.getPayCosts(); - if (!cost.hasNoManaCost()) { + if (!cost.hasNoManaCost() || !a.getApi().equals("Mana")) { continue; }