mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
add Provoke keyword
This commit is contained in:
@@ -1722,6 +1722,9 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
sbLong.append(" (This enters the battlefield with ");
|
sbLong.append(" (This enters the battlefield with ");
|
||||||
sbLong.append(numCounters);
|
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.)");
|
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")) {
|
} else if (keyword.get(i).startsWith("MayEffectFromOpeningHand")) {
|
||||||
continue;
|
continue;
|
||||||
} else if (keyword.get(i).contains("Haunt")) {
|
} else if (keyword.get(i).contains("Haunt")) {
|
||||||
|
|||||||
@@ -4951,6 +4951,16 @@ public class CardFactoryUtil {
|
|||||||
card.addTrigger(haunterUnExiled);
|
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;
|
return card;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user