- Fixed Vigean Hydropon being able to attack and block.

- The AI will now use the Graft ability of Llanowar Reborn and Vigean Hydropon.
This commit is contained in:
Sloth
2011-09-30 12:34:38 +00:00
parent 535a905f9a
commit e8e4aacddd
3 changed files with 14 additions and 5 deletions

View File

@@ -5,7 +5,6 @@ Text:no text
K:CARDNAME enters the battlefield tapped. K:CARDNAME enters the battlefield tapped.
A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add G to your mana pool. A:AB$ Mana | Cost$ T | Produced$ G | SpellDescription$ Add G to your mana pool.
K:Graft 1 K:Graft 1
SVar:RemAIDeck:True
SVar:Rarity:Uncommon SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/llanowar_reborn.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/llanowar_reborn.jpg
SetInfo:FUT|Uncommon|http://magiccards.info/scans/en/fut/171.jpg SetInfo:FUT|Uncommon|http://magiccards.info/scans/en/fut/171.jpg

View File

@@ -4,8 +4,7 @@ Types:Creature Plant Mutant
Text:no text Text:no text
PT:0/0 PT:0/0
K:Graft 5 K:Graft 5
K:HIDDEN CARDNAME can't attack or block. K:CARDNAME can't attack or block.
SVar:RemAIDeck:True
SVar:Rarity:Common SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/vigean_hydropon.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/vigean_hydropon.jpg
SetInfo:DIS|Common|http://magiccards.info/scans/en/di/135.jpg SetInfo:DIS|Common|http://magiccards.info/scans/en/di/135.jpg

View File

@@ -1976,17 +1976,28 @@ public class AbilityFactory_Counters {
* @return a boolean. * @return a boolean.
*/ */
private static boolean moveCounterDoTriggerAI(final AbilityFactory af, final SpellAbility sa, final boolean mandatory) { private static boolean moveCounterDoTriggerAI(final AbilityFactory af, final SpellAbility sa, final boolean mandatory) {
HashMap<String, String> params = af.getMapParams();
Card host = af.getHostCard();
boolean chance = false;
// if there is a cost, it's gotta be optional // if there is a cost, it's gotta be optional
if (!ComputerUtil.canPayCost(sa) && !mandatory) { if (!ComputerUtil.canPayCost(sa) && !mandatory) {
return false; return false;
} }
Counters cType = Counters.valueOf(params.get("CounterType"));
ArrayList<Card> srcCards = AbilityFactory.getDefinedCards(host, params.get("Source"), sa);
if (srcCards.size() > 0 && cType.equals(Counters.P1P1) //move +1/+1 counters away from permanents that cannot use them
&& (!srcCards.get(0).isCreature() || srcCards.get(0).hasStartOfKeyword("CARDNAME can't attack"))) {
chance = true;
}
Ability_Sub subAb = sa.getSubAbility(); Ability_Sub subAb = sa.getSubAbility();
if (subAb != null) { if (subAb != null) {
//chance &= subAb.doTrigger(mandatory); chance &= subAb.doTrigger(mandatory);
} }
return false; return chance;
} }
/** /**