mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
- Added "AITgts" parameter to AF Counter (Example: Burnout).
This commit is contained in:
@@ -2,7 +2,7 @@ Name:Burnout
|
||||
ManaCost:1 R
|
||||
Types:Instant
|
||||
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:X:Targeted$Valid Card.Blue
|
||||
SVar:RemRandomDeck:True
|
||||
|
||||
@@ -242,6 +242,10 @@ public class AbilityFactoryCounterMagic {
|
||||
if (!CardFactoryUtil.isCounterable(topSA.getSourceCard()) || topSA.getActivatingPlayer().isComputer()) {
|
||||
return false;
|
||||
}
|
||||
if (params.containsKey("AITgts") && (topSA.getSourceCard() == null
|
||||
|| !topSA.getSourceCard().isValid(params.get("AITgts"), sa.getActivatingPlayer(), source))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
tgt.resetTargets();
|
||||
if (TargetSelection.matchSpellAbility(sa, topSA, tgt)) {
|
||||
|
||||
Reference in New Issue
Block a user