mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Converted some cards to the new CantTarget static ability.
This commit is contained in:
@@ -4,7 +4,8 @@ Types:Enchantment Aura
|
||||
Text:no text
|
||||
K:Enchant creature
|
||||
A:SP$ Attach | Cost$ 1 G | ValidTgts$ Creature | AILogic$ Pump
|
||||
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddHiddenKeyword$ HIDDEN CARDNAME can't be blocked except by creatures with flying or reach. & HIDDEN Hexproof | Description$ Enchanted creature can't be blocked except by creatures with flying or reach. Enchanted creature can't be the target of spells or abilities your opponents control.
|
||||
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddHiddenKeyword$ HIDDEN CARDNAME can't be blocked except by creatures with flying or reach. | Description$ Enchanted creature can't be blocked except by creatures with flying or reach.
|
||||
S:Mode$ CantTarget | ValidCard$ Card.EnchantedBy | Activator$ Opponent | Description$ Enchanted creature can't be the target of spells or abilities your opponents control.
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/canopy_cover.jpg
|
||||
SetInfo:WWK|Uncommon|http://magiccards.info/scans/en/wwk/98.jpg
|
||||
|
||||
@@ -2,7 +2,7 @@ Name:Dense Foliage
|
||||
ManaCost:2 G
|
||||
Types:Enchantment
|
||||
Text:no text
|
||||
S:Mode$ Continuous | Affected$ Creature | AddHiddenKeyword$ HIDDEN CARDNAME can't be the target of spells. | Description$ Creatures can't be the target of spells.
|
||||
S:Mode$ CantTarget | ValidCard$ Creature | Spell$ True | Description$ Creatures can't be the target of spells.
|
||||
SVar:RemRandomDeck:True
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/dense_foliage.jpg
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
Name:Gaea's Revenge
|
||||
ManaCost:5 G G
|
||||
Types:Creature Elemental
|
||||
Text:Gaea's Revenge can't be the target of nongreen spells or abilities from nongreen sources.
|
||||
Text:
|
||||
PT:8/5
|
||||
K:CARDNAME can't be countered.
|
||||
K:Haste
|
||||
S:Mode$ CantTarget | ValidCard$ Card.Self | ValidSource$ Card.nonGreen | Description$ CARDNAME can't be the target of nongreen spells or abilities from nongreen sources.
|
||||
SVar:Rarity:Mythic
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/gaeas_revenge.jpg
|
||||
SetInfo:M11|Mythic|http://magiccards.info/scans/en/m11/174.jpg
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:2 W
|
||||
Types:Creature Human Rebel Mercenary
|
||||
Text:no text
|
||||
PT:2/1
|
||||
K:CARDNAME can't be the target of black spells or abilities from black sources.
|
||||
S:Mode$ CantTarget | ValidCard$ Card.Self | ValidSource$ Card.Black | Description$ CARDNAME can't be the target of black spells or abilities from black sources.
|
||||
A:AB$ ChangeZone | Cost$ 2 W | ValidTgts$ Mercenary | IsCurse$ True | TgtPrompt$ Select target Mercenary | Origin$ Battlefield | Destination$ Library | LibraryPosition$ -1 | SpellDescription$ Put target Mercenary on the bottom of its owner's library.
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/mercenary_informer.jpg
|
||||
|
||||
@@ -3,7 +3,7 @@ ManaCost:2 B
|
||||
Types:Creature Human Mercenary Rebel
|
||||
Text:no text
|
||||
PT:1/2
|
||||
K:CARDNAME can't be the target of white spells or abilities from white sources.
|
||||
S:Mode$ CantTarget | ValidCard$ Card.Self | ValidSource$ Card.White | Description$ CARDNAME can't be the target of white spells or abilities from white sources.
|
||||
A:AB$ ChangeZone | Cost$ 3 | ValidTgts$ Rebel | IsCurse$ True | TgtPrompt$ Select target Rebel | Origin$ Battlefield | Destination$ Library | LibraryPosition$ -1 | SpellDescription$ Put target Rebel on the bottom of its owner's library.
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/rebel_informer.jpg
|
||||
|
||||
@@ -4,7 +4,7 @@ Types:Enchantment Aura
|
||||
Text:no text
|
||||
K:Enchant creature
|
||||
A:SP$ Attach | Cost$ 2 GU | ValidTgts$ Creature | AILogic$ Pump
|
||||
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddHiddenKeyword$ HIDDEN Hexproof | Description$ Enchanted creature can't be the target of spells or abilities your opponents control.
|
||||
S:Mode$ CantTarget | ValidCard$ Card.EnchantedBy | Activator$ Opponent | Description$ Enchanted creature can't be the target of spells or abilities your opponents control.
|
||||
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDraw | TriggerDescription$ When CARDNAME enters the battlefield, draw a card.
|
||||
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1
|
||||
SVar:Rarity:Common
|
||||
|
||||
@@ -17,6 +17,10 @@ public class StaticAbilityCantTarget {
|
||||
final Card source = sa.getSourceCard();
|
||||
final Player activator = sa.getActivatingPlayer();
|
||||
|
||||
if (params.containsKey("Spell") && !sa.isSpell()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (params.containsKey("ValidCard")
|
||||
&& !card.isValid(params.get("ValidCard").split(","), hostCard.getController(), hostCard)) {
|
||||
return false;
|
||||
@@ -32,6 +36,7 @@ public class StaticAbilityCantTarget {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user