mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
retire keyword "Whenever CARDNAME deals damage, you gain that much life." Everything is converted to triggers.
This commit is contained in:
@@ -291,7 +291,6 @@ public class CardFactoryUtil {
|
||||
value += c.getAmountOfKeyword("Exalted") * 15;
|
||||
if (c.hasKeyword("First Strike") && !c.hasKeyword("Double Strike") && power > 0) value += 15;
|
||||
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("Vigilance")) value += power * 5 + toughness * 5;
|
||||
if (c.hasKeyword("Wither")) value += power * 10;
|
||||
|
||||
@@ -2693,25 +2693,6 @@ public class GameActionUtil {
|
||||
|
||||
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());
|
||||
|
||||
for(Card enchantment: enchantments) {
|
||||
|
||||
Reference in New Issue
Block a user