- Added the keyword "Whenever enchanted creature deals damage, you gain that much life."

- Converted Spirit Link and Armadillo Cloak.
- Added SVar:RemAIDeck:True to a couple of cards.
This commit is contained in:
jendave
2011-08-06 13:52:59 +00:00
parent 9858e7f1b0
commit c8f184dfb9
7 changed files with 31 additions and 9 deletions

View File

@@ -1,9 +1,10 @@
Name:Armadillo Cloak Name:Armadillo Cloak
ManaCost:1 G W ManaCost:1 G W
Types:Enchantment Aura Types:Enchantment Aura
Text:Enchanted creature gets +2/+2 and has trample and lifelink. Text:Enchanted creature gets +2/+2 and has trample.
K:Enchant creature K:Enchant creature
K:enPump:+2/+2/Trample & Lifelink K:enPump:+2/+2/Trample
K:Whenever enchanted creature deals damage, you gain that much life.
SVar:Rarity:Common SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/armadillo_cloak.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/armadillo_cloak.jpg
SetInfo:INV|Common|http://magiccards.info/scans/en/in/229.jpg SetInfo:INV|Common|http://magiccards.info/scans/en/in/229.jpg

View File

@@ -3,6 +3,7 @@ ManaCost:3
Types:Artifact Types:Artifact
Text:no text Text:no text
A:AB$Scry | Cost$ 1 T | ScryNum$ 2 |SpellDescription$ Scry 2. (To scry 2, look at the top two cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.) A:AB$Scry | Cost$ 1 T | ScryNum$ 2 |SpellDescription$ Scry 2. (To scry 2, look at the top two cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.)
SVar:RemAIDeck:True
SVar:Rarity:Uncommon SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/crystal_ball.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/crystal_ball.jpg
End End

View File

@@ -4,6 +4,7 @@ Types:Sorcery
Text:no text Text:no text
A:SP$Scry | Cost$ U | ScryNum$ 3 | SpellDescription$ Scry 3. (To scry 3, look at the top three cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.) A:SP$Scry | Cost$ U | ScryNum$ 3 | SpellDescription$ Scry 3. (To scry 3, look at the top three cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.)
SVar:Buyback:2 SVar:Buyback:2
SVar:RemAIDeck:True
SVar:Rarity:Uncommon SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/mystic_speculation.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/mystic_speculation.jpg
SetInfo:FUT|Uncommon|http://magiccards.info/scans/en/fut/41.jpg SetInfo:FUT|Uncommon|http://magiccards.info/scans/en/fut/41.jpg

View File

@@ -1,9 +1,10 @@
Name:Spirit Link Name:Spirit Link
ManaCost:W ManaCost:W
Types:Enchantment Aura Types:Enchantment Aura
Text:Whenever enchanted creature deals damage, you gain that much life. Text:no text
K:Enchant creature K:Enchant creature
K:enPump:Whenever CARDNAME deals damage, you gain that much life. K:enPump:+0/+0
K:Whenever enchanted creature deals damage, you gain that much life.
SVar:Rarity:Uncommon SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/spirit_link.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/spirit_link.jpg
End End

View File

@@ -5397,9 +5397,27 @@ public class GameActionUtil {
AllZone.Stack.add(ability); AllZone.Stack.add(ability);
} }
CardList cl = CardFactoryUtil.getAurasEnchanting(source, "Guilty Conscience"); CardList enchantments = new CardList(source.getEnchantedBy().toArray());
for(Card c:cl) {
GameActionUtil.executeGuiltyConscienceEffects(source, c, damage); for(Card enchantment: enchantments) {
if(enchantment.getName().equals("Guilty Conscience"))
GameActionUtil.executeGuiltyConscienceEffects(source, enchantment, damage);
if(enchantment.getKeyword().contains("Whenever enchanted creature deals damage, you gain that much life.")) {
final int life = damage;
final Card e = enchantment;
final Player player = e.getController();
Ability ability = new Ability(e, "0") {
@Override
public void resolve() {
player.gainLife(life, e);
}
};
StringBuilder sb = new StringBuilder();
sb.append(e.getName()+" - ").append(player).append(" gains ").append(life).append(" life");
ability.setStackDescription(sb.toString());
AllZone.Stack.add(ability);
}
} }
} }