mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
convert Emberstrike Duo to trigger
This commit is contained in:
@@ -3,6 +3,10 @@ ManaCost:1 BR
|
|||||||
Types:Creature Elemental Warrior Shaman
|
Types:Creature Elemental Warrior Shaman
|
||||||
Text:Whenever you cast a black spell, Emberstrike Duo gets +1/+1 until end of turn.\r\nWhenever you cast a red spell, Emberstrike Duo gains first strike until end of turn.
|
Text:Whenever you cast a black spell, Emberstrike Duo gets +1/+1 until end of turn.\r\nWhenever you cast a red spell, Emberstrike Duo gains first strike until end of turn.
|
||||||
PT:1/1
|
PT:1/1
|
||||||
|
T:Mode$ SpellCast | ValidCard$ Card.Black+YouCtrl | TriggerZones$ Battlefield | Execute$ TrigPump11 | TriggerDescription$ Whenever you cast a black spell, CARDNAME gets +1/+1 until end of turn.
|
||||||
|
T:Mode$ SpellCast | ValidCard$ Card.Red+YouCtrl | TriggerZones$ Battlefield | Execute$ TrigPumpFirstStrike | TriggerDescription$ Whenever you cast a red spell, CARDNAME gains first strike until end of turn.
|
||||||
|
SVar:TrigPump11:AB$Pump | Cost$ 0 | NumAtt$ +1 | NumDef$ +1 | Defined$ Self
|
||||||
|
SVar:TrigPumpFirstStrike:AB$Pump | Cost$ 0 | KW$ Fear | Defined$ Self
|
||||||
SVar:BuffedBy:Spell.Black,Spell.Red
|
SVar:BuffedBy:Spell.Black,Spell.Red
|
||||||
SVar:Rarity:Common
|
SVar:Rarity:Common
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/emberstrike_duo.jpg
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/emberstrike_duo.jpg
|
||||||
|
|||||||
@@ -487,7 +487,6 @@ public class GameActionUtil {
|
|||||||
playCard_Thief_of_Hope(c);
|
playCard_Thief_of_Hope(c);
|
||||||
playCard_Infernal_Kirin(c);
|
playCard_Infernal_Kirin(c);
|
||||||
playCard_Cloudhoof_Kirin(c);
|
playCard_Cloudhoof_Kirin(c);
|
||||||
playCard_Emberstrike_Duo(c);
|
|
||||||
playCard_Gravelgill_Duo(c);
|
playCard_Gravelgill_Duo(c);
|
||||||
playCard_Safehold_Duo(c);
|
playCard_Safehold_Duo(c);
|
||||||
playCard_Tattermunge_Duo(c);
|
playCard_Tattermunge_Duo(c);
|
||||||
@@ -1018,84 +1017,6 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void playCard_Emberstrike_Duo(Card c) {
|
|
||||||
final Player controller = c.getController();
|
|
||||||
|
|
||||||
final PlayerZone play = AllZone.getZone(Constant.Zone.Battlefield, controller);
|
|
||||||
|
|
||||||
CardList list = new CardList();
|
|
||||||
list.addAll(play.getCards());
|
|
||||||
|
|
||||||
list = list.getName("Emberstrike Duo");
|
|
||||||
|
|
||||||
if(list.size() > 0) {
|
|
||||||
if(c.isBlack()) {
|
|
||||||
for(int i = 0; i < list.size(); i++) {
|
|
||||||
final Card card = list.get(i);
|
|
||||||
final Command untilEOT = new Command() {
|
|
||||||
private static final long serialVersionUID = -4569751606008597903L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
if(AllZone.GameAction.isCardInPlay(card)) {
|
|
||||||
card.addTempAttackBoost(-1);
|
|
||||||
card.addTempDefenseBoost(-1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
Ability ability2 = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
card.addTempAttackBoost(1);
|
|
||||||
card.addTempDefenseBoost(1);
|
|
||||||
AllZone.EndOfTurn.addUntil(untilEOT);
|
|
||||||
}
|
|
||||||
}; // ability2
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(card.getName()).append(" - ").append(c.getController());
|
|
||||||
sb.append(" played a black spell, Emberstrike Duo gets +1/+1 until end of turn.");
|
|
||||||
ability2.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
|
||||||
}
|
|
||||||
}//if
|
|
||||||
}
|
|
||||||
|
|
||||||
if(c.isRed()) {
|
|
||||||
for(int i = 0; i < list.size(); i++) {
|
|
||||||
final Card card = list.get(i);
|
|
||||||
final Command untilEOT = new Command() {
|
|
||||||
private static final long serialVersionUID = -4569751606008597913L;
|
|
||||||
|
|
||||||
public void execute() {
|
|
||||||
if(AllZone.GameAction.isCardInPlay(card)) {
|
|
||||||
card.removeIntrinsicKeyword("First Strike");
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
Ability ability2 = new Ability(card, "0") {
|
|
||||||
@Override
|
|
||||||
public void resolve() {
|
|
||||||
if(!card.getIntrinsicKeyword().contains("First Strike")) card.addIntrinsicKeyword("First Strike");
|
|
||||||
AllZone.EndOfTurn.addUntil(untilEOT);
|
|
||||||
}
|
|
||||||
}; // ability2
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append(card.getName()).append(" - ").append(c.getController());
|
|
||||||
sb.append(" played a red spell, Emberstrike Duo gains first strike until end of turn.");
|
|
||||||
ability2.setStackDescription(sb.toString());
|
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
|
||||||
}
|
|
||||||
}//if
|
|
||||||
|
|
||||||
}//Emberstrike Duo
|
|
||||||
|
|
||||||
public static void playCard_Gravelgill_Duo(Card c) {
|
public static void playCard_Gravelgill_Duo(Card c) {
|
||||||
final Player controller = c.getController();
|
final Player controller = c.getController();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user