- Added "AITgts" parameter to AF Counter (Example: Burnout).

This commit is contained in:
Sloth
2012-05-01 15:37:57 +00:00
parent 59f917adcd
commit 83b97fc101
2 changed files with 5 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ Name:Burnout
ManaCost:1 R ManaCost:1 R
Types:Instant Types:Instant
Text:no text Text:no text
A:SP$ Counter | Cost$ 1 R | TargetType$ Spell | TgtPrompt$ Select target spell | ValidTgts$ Card.Instant | ConditionCheckSVar$ X | ConditionSVarCompare$ GE1 | SpellDescription$ Counter target instant spell if it's blue. Draw a card at the beginning of the next turn's upkeep. | SubAbility$ DBDraw A:SP$ Counter | Cost$ 1 R | TargetType$ Spell | TgtPrompt$ Select target spell | ValidTgts$ Instant | AITgts$ Card.Blue | ConditionCheckSVar$ X | ConditionSVarCompare$ GE1 | SpellDescription$ Counter target instant spell if it's blue. Draw a card at the beginning of the next turn's upkeep. | SubAbility$ DBDraw
SVar:DBDraw:DB$Draw | NumCards$ 1 | NextUpkeep$ True | Defined$ You SVar:DBDraw:DB$Draw | NumCards$ 1 | NextUpkeep$ True | Defined$ You
SVar:X:Targeted$Valid Card.Blue SVar:X:Targeted$Valid Card.Blue
SVar:RemRandomDeck:True SVar:RemRandomDeck:True

View File

@@ -242,6 +242,10 @@ public class AbilityFactoryCounterMagic {
if (!CardFactoryUtil.isCounterable(topSA.getSourceCard()) || topSA.getActivatingPlayer().isComputer()) { if (!CardFactoryUtil.isCounterable(topSA.getSourceCard()) || topSA.getActivatingPlayer().isComputer()) {
return false; return false;
} }
if (params.containsKey("AITgts") && (topSA.getSourceCard() == null
|| !topSA.getSourceCard().isValid(params.get("AITgts"), sa.getActivatingPlayer(), source))) {
return false;
}
tgt.resetTargets(); tgt.resetTargets();
if (TargetSelection.matchSpellAbility(sa, topSA, tgt)) { if (TargetSelection.matchSpellAbility(sa, topSA, tgt)) {