mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Added "AITgts" parameter to AF Counter (Example: Burnout).
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user