- Converted Treacherous Link to script.

This commit is contained in:
Sloth
2013-05-26 12:47:50 +00:00
parent 86b848c80a
commit cbe64235c8
2 changed files with 5 additions and 8 deletions

View File

@@ -1,9 +1,13 @@
Name:Treacherous Link Name:Treacherous Link
ManaCost:1 B ManaCost:1 B
Types:Enchantment Aura Types:Enchantment Aura
Text:All damage that would be dealt to enchanted creature is dealt to its controller instead.
K:Enchant creature K:Enchant creature
A:SP$ Attach | Cost$ 1 B | ValidTgts$ Creature | AILogic$ Curse A:SP$ Attach | Cost$ 1 B | ValidTgts$ Creature | AILogic$ Curse
R:Event$ DamageDone | ActiveZones$ Battlefield | ValidTarget$ Card.EnchantedBy | ReplaceWith$ DmgEnchanted | IsCombat$ False | Description$ All damage that would be dealt to enchanted creature is dealt to its controller instead.
R:Event$ DamageDone | ActiveZones$ Battlefield | ValidTarget$ Card.EnchantedBy | ReplaceWith$ DmgEnchantedCombat | IsCombat$ True | Secondary$ True | Description$ All damage that would be dealt to enchanted creature is dealt to its controller instead.
SVar:DmgEnchanted:AB$ DealDamage | Cost$ 0 | Defined$ EnchantedOwner | DamageSource$ ReplacedSource | NumDmg$ X | References$ X
SVar:DmgEnchantedCombat:AB$ DealDamage | Cost$ 0 | CombatDamage$ True | Defined$ EnchantedOwner | DamageSource$ ReplacedSource | NumDmg$ X | References$ X
SVar:X:ReplaceCount$DamageAmount
SVar:RemAIDeck:True SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/treacherous_link.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/treacherous_link.jpg
Oracle:Enchant creature\nAll damage that would be dealt to enchanted creature is dealt to its controller instead. Oracle:Enchant creature\nAll damage that would be dealt to enchanted creature is dealt to its controller instead.

View File

@@ -7340,13 +7340,6 @@ public class Card extends GameEntity implements Comparable<Card> {
return 0; return 0;
} }
final List<Card> auras = new ArrayList<Card>(this.getEnchantedBy());
if (Iterables.any(auras, CardPredicates.nameEquals("Treacherous Link"))) {
this.getController().addDamage(damageIn, source);
return 0;
}
return damageIn; return damageIn;
} }