add Provoke keyword

This commit is contained in:
slapshot5
2011-10-17 01:12:31 +00:00
parent 56f9637b35
commit cba6aba24a
2 changed files with 13 additions and 0 deletions

View File

@@ -1722,6 +1722,9 @@ public class Card extends GameEntity implements Comparable<Card> {
sbLong.append(" (This enters the battlefield with ");
sbLong.append(numCounters);
sbLong.append(" +1/+1 counters on it. When it's put into a graveyard, you may put its +1/+1 counters on target artifact creature.)");
} else if (keyword.get(i).startsWith("Provoke")) {
sbLong.append(keyword.get(i));
sbLong.append(" (When this attacks, you may have target creature defending player controls untap and block it if able.)");
} else if (keyword.get(i).startsWith("MayEffectFromOpeningHand")) {
continue;
} else if (keyword.get(i).contains("Haunt")) {

View File

@@ -4951,6 +4951,16 @@ public class CardFactoryUtil {
card.addTrigger(haunterUnExiled);
}
if(card.hasKeyword("Provoke")) {
String actualTrigger = "Mode$ Attacks | ValidCard$ Card.Self | OptionalDecider$ You | Execute$ UntapAbility | Secondary$ True | TriggerDescription$ When this attacks, you may have target creature defending player controls untap and block it if able.";
String abString = "AB$ Untap | Cost$ 0 | ValidTgts$ Creature.YouDontCtrl | TgtPrompt$ Select target creature defending player controls | SubAbility$ DBProvoke";
String dbString = "DB$ MustBlock | Defined$ Targeted";
Trigger parsedTrigger = TriggerHandler.parseTrigger(actualTrigger, card, false);
card.addTrigger(parsedTrigger);
card.setSVar("UntapAbility", abString);
card.setSVar("DBProvoke", dbString);
}
return card;
}