- Added AITgts to three more cards.

This commit is contained in:
Sloth
2012-05-01 16:52:35 +00:00
parent 63f9106464
commit 07eadcca7e
4 changed files with 11 additions and 8 deletions

View File

@@ -3,7 +3,7 @@ ManaCost:3 W
Types:Enchantment Aura
Text:no text
K:Enchant permanent
A:SP$ Attach | Cost$ 3 W | ValidTgts$ Permanent | AILogic$ Curse
A:SP$ Attach | Cost$ 3 W | ValidTgts$ Permanent | AITgts$ Creature | AILogic$ Curse
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigGainLife | TriggerDescription$ When CARDNAME enters the battlefield, you gain 4 life.
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | LifeAmount$ 4
S:Mode$ CantBeActivated | ValidCard$ Card.EnchantedBy | NonMana$ True | Description$ Enchanted permanent's activated abilities can't be activated unless they're mana abilities. If enchanted permanent is a creature, it can't attack or block.

View File

@@ -3,7 +3,7 @@ ManaCost:1 W
Types:Enchantment Aura
Text:no text
K:Enchant artifact
A:SP$ Attach | Cost$ 1 W | ValidTgts$ Artifact | AILogic$ Curse
A:SP$ Attach | Cost$ 1 W | ValidTgts$ Artifact | AITgts$ Creature,Card.hasActivatedAbility | AILogic$ Curse
S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddHiddenKeyword$ HIDDEN CARDNAME's activated abilities can't be activated. | Description$ Enchanted artifact's activated abilities can't be activated. If enchanted artifact is a creature, it can't attack or block.
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddHiddenKeyword$ HIDDEN CARDNAME can't attack or block.
SVar:Rarity:Common

View File

@@ -3,11 +3,10 @@ ManaCost:1 U
Types:Enchantment Aura
Text:no text
K:Enchant creature
A:SP$ Attach | Cost$ 1 U | ValidTgts$ Creature | AILogic$ Curse
A:SP$ Attach | Cost$ 1 U | ValidTgts$ Creature | AITgts$ Card.hasActivatedAbility | AILogic$ Curse
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
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddHiddenKeyword$ HIDDEN CARDNAME's activated abilities can't be activated. | Description$ Enchanted creature's activated abilities can't be activated.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/stupefying_touch.jpg
SetInfo:TOR|Uncommon|http://magiccards.info/scans/en/tr/48.jpg

View File

@@ -7051,15 +7051,19 @@ public class Card extends GameEntity implements Comparable<Card> {
return false;
}
} else if (property.equals("hasActivatedAbilityWithTapCost")) {
boolean hasIt = false;
for (final SpellAbility sa : this.getSpellAbilities()) {
if (sa.isAbility() && (sa.getPayCosts() != null) && sa.getPayCosts().getTap()) {
hasIt = true;
return true;
}
}
if (!hasIt) {
return false;
} else if (property.equals("hasActivatedAbility")) {
for (final SpellAbility sa : this.getSpellAbilities()) {
if (sa.isAbility()) {
return true;
}
}
return false;
} else if (property.equals("NoAbilities")) {
if (!((this.getAbilityText().trim().equals("") || this.isFaceDown()) && (this.getUnhiddenKeyword().size() == 0))) {
return false;