mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Conversion to StringBuilder. Still working on GameActionUtil.java.
This commit is contained in:
@@ -1098,10 +1098,10 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb2.append(card.getName()).append(" - ").append(c.getController());
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
sb2.append(" played a black spell, Emberstrike Duo gets +1/+1 until end of turn.");
|
sb.append(" played a black spell, Emberstrike Duo gets +1/+1 until end of turn.");
|
||||||
ability2.setStackDescription(sb2.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
@@ -1130,10 +1130,10 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb2.append(card.getName()).append(" - ").append(c.getController());
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
sb2.append(" played a red spell, Emberstrike Duo gains first strike until end of turn.");
|
sb.append(" played a red spell, Emberstrike Duo gains first strike until end of turn.");
|
||||||
ability2.setStackDescription(sb2.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
@@ -1177,10 +1177,10 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb2.append(card.getName()).append(" - ").append(c.getController());
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
sb2.append(" played a blue spell, Gravelgill Duo gets +1/+1 until end of turn.");
|
sb.append(" played a blue spell, Gravelgill Duo gets +1/+1 until end of turn.");
|
||||||
ability2.setStackDescription(sb2.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
@@ -1209,10 +1209,10 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb2.append(card.getName()).append(" - ").append(c.getController());
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
sb2.append(" played a black spell, Emberstrike Duo gains fear until end of turn.");
|
sb.append(" played a black spell, Emberstrike Duo gains fear until end of turn.");
|
||||||
ability2.setStackDescription(sb2.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
@@ -1236,10 +1236,10 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb2.append(card.getName()).append(" - ").append(c.getController());
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
sb2.append(" played a spell with same amount of charge counters on Chalice of the Void. The spell is countered");
|
sb.append(" played a spell with same amount of charge counters on Chalice of the Void. The spell is countered");
|
||||||
ability2.setStackDescription(sb2.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
int convertedManaSpell = CardUtil.getConvertedManaCost(sa.getSourceCard().getManaCost());
|
int convertedManaSpell = CardUtil.getConvertedManaCost(sa.getSourceCard().getManaCost());
|
||||||
if(sa.isSpell() == true && card.getCounters(Counters.CHARGE) == convertedManaSpell) AllZone.Stack.add(ability2);
|
if(sa.isSpell() == true && card.getCounters(Counters.CHARGE) == convertedManaSpell) AllZone.Stack.add(ability2);
|
||||||
@@ -1281,10 +1281,10 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb2.append(card.getName()).append(" - ").append(c.getController());
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
sb2.append(" played a green spell, Safehold Duo gets +1/+1 until end of turn.");
|
sb.append(" played a green spell, Safehold Duo gets +1/+1 until end of turn.");
|
||||||
ability2.setStackDescription(sb2.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
@@ -1313,10 +1313,10 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb2.append(card.getName()).append(" - ").append(c.getController());
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
sb2.append(" played a white spell, Safehold Duo gains vigilance until end of turn.");
|
sb.append(" played a white spell, Safehold Duo gains vigilance until end of turn.");
|
||||||
ability2.setStackDescription(sb2.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
@@ -1358,10 +1358,10 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb2.append(card.getName()).append(" - ").append(c.getController());
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
sb2.append(" played a red spell, Tattermunge Duo gets +1/+1 until end of turn.");
|
sb.append(" played a red spell, Tattermunge Duo gets +1/+1 until end of turn.");
|
||||||
ability2.setStackDescription(sb2.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
@@ -1389,10 +1389,10 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb2.append(card.getName()).append(" - ").append(c.getController());
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
sb2.append(" played a green spell, Tattermunge Duo gains forestwalk until end of turn.");
|
sb.append(" played a green spell, Tattermunge Duo gains forestwalk until end of turn.");
|
||||||
ability2.setStackDescription(sb2.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
@@ -1434,10 +1434,10 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
StringBuilder sb2 = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb2.append(card.getName()).append(" - ").append(c.getController());
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
sb2.append(" played a white spell, Thistledown Duo gets +1/+1 until end of turn.");
|
sb.append(" played a white spell, Thistledown Duo gets +1/+1 until end of turn.");
|
||||||
ability2.setStackDescription(sb2.toString());
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
@@ -1466,8 +1466,11 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " played a blue spell, Thistledown Duo gains flying until end of turn.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a blue spell, Thistledown Duo gains flying until end of turn.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -1497,10 +1500,13 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
ability2.setStackDescription(c.getName()
|
|
||||||
+ " - "
|
StringBuilder sb = new StringBuilder();
|
||||||
+ c.getController()
|
sb.append(c.getName()).append(" - ").append(c.getController());
|
||||||
+ " casts Demigod of Revenge, returns all cards named Demigod of Revenge from your graveyard to the battlefield.");
|
sb.append(" casts Demigod of Revenge, returns all cards named Demigod ");
|
||||||
|
sb.append("of Revenge from your graveyard to the battlefield.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
|
|
||||||
}//if
|
}//if
|
||||||
@@ -1547,10 +1553,12 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " - "
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
+ c.getController()
|
sb.append(" played a creature spell Halcyon Glaze becomes a 4/4 Illusion ");
|
||||||
+ " played a creature spell Halcyon Glaze becomes a 4/4 Illusion creature with flying until end of turn. It's still an enchantment.");
|
sb.append("creature with flying until end of turn. It's still an enchantment.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -1593,10 +1601,12 @@ public class GameActionUtil {
|
|||||||
}; //ability
|
}; //ability
|
||||||
ability2.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
ability2.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
||||||
ability2.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability2));
|
ability2.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability2));
|
||||||
ability2.setStackDescription(card.getName()
|
|
||||||
+ " - "
|
StringBuilder sb = new StringBuilder();
|
||||||
+ c.getController()
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
+ " played a Spirit or Arcane spell, target opponent loses 1 life and you gain 1 life.");
|
sb.append(" played a Spirit or Arcane spell, target opponent loses 1 life and you gain 1 life.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -1649,11 +1659,13 @@ public class GameActionUtil {
|
|||||||
}; //ability
|
}; //ability
|
||||||
ability2.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
ability2.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
||||||
ability2.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability2));
|
ability2.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability2));
|
||||||
ability2.setStackDescription(card.getName()
|
|
||||||
+ " - "
|
StringBuilder sb = new StringBuilder();
|
||||||
+ c.getController()
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
+ " played a Spirit or Arcane spell, target player reveals his or her hand and discards all cards with converted mana cost "
|
sb.append(" played a Spirit or Arcane spell, target player reveals his or her hand ");
|
||||||
+ converted + ".");
|
sb.append("and discards all cards with converted mana cost ").append(converted).append(".");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -1708,9 +1720,13 @@ public class GameActionUtil {
|
|||||||
}; //ability
|
}; //ability
|
||||||
ability2.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
ability2.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
||||||
ability2.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability2));
|
ability2.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability2));
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
|
||||||
+ " played a Spirit or Arcane spell, target player puts the top " + converted
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " cards of his or her library into his or her graveyard.");
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a Spirit or Arcane spell, target player puts the top ");
|
||||||
|
sb.append(converted).append(" cards of his or her library into his or her graveyard.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -1755,8 +1771,13 @@ public class GameActionUtil {
|
|||||||
}; //ability
|
}; //ability
|
||||||
ability2.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
ability2.setChooseTargetAI(CardFactoryUtil.AI_targetHuman());
|
||||||
ability2.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability2));
|
ability2.setBeforePayMana(CardFactoryUtil.input_targetPlayer(ability2));
|
||||||
ability2.setStackDescription(card.getName() + " - " + c.getController()
|
|
||||||
+ " played a Spirit or Arcane spell, target player may gain " + converted + " life.");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
|
sb.append(" played a Spirit or Arcane spell, target player may gain ");
|
||||||
|
sb.append(converted).append(" life.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -1802,10 +1823,12 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " - "
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
+ c.getController()
|
sb.append(" played a spell that's both green and blue, ");
|
||||||
+ " played a spell that<61>s both green and blue, it becomes 5/3 and gains trample until end of turn.");
|
sb.append("it becomes 5/3 and gains trample until end of turn.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -1850,10 +1873,12 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " - "
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
+ c.getController()
|
sb.append(" played a spell that's both red and white, ");
|
||||||
+ " played a spell that<61>s both red and white, it becomes 4/2 and gains first strike until end of turn.");
|
sb.append("it becomes 4/2 and gains first strike until end of turn.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -1898,10 +1923,12 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " - "
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
+ c.getController()
|
sb.append(" played a spell that's both black and white, ");
|
||||||
+ " played a spell that's both black and white, it becomes 4/4 and gains flying until end of turn.");
|
sb.append("it becomes 4/4 and gains flying until end of turn.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -1946,10 +1973,12 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " - "
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
+ c.getController()
|
sb.append(" played a spell that's both red and blue, ");
|
||||||
+ " played a spell that<61>s both red and blue, it becomes 3/3 and is unblockable until end of turn.");
|
sb.append("it becomes 3/3 and is unblockable until end of turn.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
@@ -1994,10 +2023,12 @@ public class GameActionUtil {
|
|||||||
}
|
}
|
||||||
}; // ability2
|
}; // ability2
|
||||||
|
|
||||||
ability2.setStackDescription(card.getName()
|
StringBuilder sb = new StringBuilder();
|
||||||
+ " - "
|
sb.append(card.getName()).append(" - ").append(c.getController());
|
||||||
+ c.getController()
|
sb.append(" played a spell that's both green and black, ");
|
||||||
+ " played a spell that<61>s both green and black, it becomes 4/5 and gains wither until end of turn.");
|
sb.append("it becomes 4/5 and gains wither until end of turn.");
|
||||||
|
ability2.setStackDescription(sb.toString());
|
||||||
|
|
||||||
AllZone.Stack.add(ability2);
|
AllZone.Stack.add(ability2);
|
||||||
}
|
}
|
||||||
}//if
|
}//if
|
||||||
|
|||||||
Reference in New Issue
Block a user