mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- 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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
Ability_Sub subAb = sa.getSubAbility();
|
Counters cType = Counters.valueOf(params.get("CounterType"));
|
||||||
if (subAb != null) {
|
ArrayList<Card> srcCards = AbilityFactory.getDefinedCards(host, params.get("Source"), sa);
|
||||||
//chance &= subAb.doTrigger(mandatory);
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
Ability_Sub subAb = sa.getSubAbility();
|
||||||
|
if (subAb != null) {
|
||||||
|
chance &= subAb.doTrigger(mandatory);
|
||||||
|
}
|
||||||
|
|
||||||
|
return chance;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user