retire keyword "Whenever CARDNAME deals damage, you gain that much life." Everything is converted to triggers.

This commit is contained in:
jendave
2011-08-06 19:26:25 +00:00
parent af38eb0a16
commit 54350da716
2 changed files with 0 additions and 20 deletions

View File

@@ -291,7 +291,6 @@ public class CardFactoryUtil {
value += c.getAmountOfKeyword("Exalted") * 15; value += c.getAmountOfKeyword("Exalted") * 15;
if (c.hasKeyword("First Strike") && !c.hasKeyword("Double Strike") && power > 0) value += 15; if (c.hasKeyword("First Strike") && !c.hasKeyword("Double Strike") && power > 0) value += 15;
if (c.hasKeyword("Lifelink")) value += power * 10; if (c.hasKeyword("Lifelink")) value += power * 10;
value += c.getAmountOfKeyword("Whenever CARDNAME deals damage, you gain that much life.") * power * 10;
if (c.hasKeyword("Trample")) value += power * 3; if (c.hasKeyword("Trample")) value += power * 3;
if (c.hasKeyword("Vigilance")) value += power * 5 + toughness * 5; if (c.hasKeyword("Vigilance")) value += power * 5 + toughness * 5;
if (c.hasKeyword("Wither")) value += power * 10; if (c.hasKeyword("Wither")) value += power * 10;

View File

@@ -2693,25 +2693,6 @@ public class GameActionUtil {
if(source.getKeyword().contains("Lifelink")) GameActionUtil.executeLifeLinkEffects(source, damage); if(source.getKeyword().contains("Lifelink")) GameActionUtil.executeLifeLinkEffects(source, damage);
if(source.getKeyword().contains("Whenever CARDNAME deals damage, you gain that much life.")) {
final int life = damage;
final Player player = source.getController();
Ability ability = new Ability(source, "0") {
@Override
public void resolve() {
player.gainLife(life, source);
}
};
StringBuilder sb = new StringBuilder();
sb.append(source.getName()+" - ").append(player).append(" gains ").append(life).append(" life");
ability.setStackDescription(sb.toString());
int amount = source.getAmountOfKeyword("Whenever CARDNAME deals damage, you gain that much life.");
for(int i=0 ; i < amount ; i++)
AllZone.Stack.add(ability);
}
CardList enchantments = new CardList(source.getEnchantedBy().toArray()); CardList enchantments = new CardList(source.getEnchantedBy().toArray());
for(Card enchantment: enchantments) { for(Card enchantment: enchantments) {