mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
fix Berserk stack description
This commit is contained in:
@@ -88,11 +88,11 @@ public class EndOfTurn implements java.io.Serializable
|
||||
final SpellAbility sac = new Ability(card, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
if(AllZoneUtil.isCardInPlay(card)) AllZone.GameAction.sacrifice(card);
|
||||
if(AllZoneUtil.isCardInPlay(card)) AllZone.GameAction.destroy(card);
|
||||
}
|
||||
};
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Sacrifice ").append(card);
|
||||
sb.append("Destroy ").append(card);
|
||||
sac.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.addSimultaneousStackEntry(sac);
|
||||
@@ -133,7 +133,7 @@ public class EndOfTurn implements java.io.Serializable
|
||||
}
|
||||
};
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(raider.getName()).append(" deals 2 damage to controller.");
|
||||
sb.append(raider).append(" deals 2 damage to controller.");
|
||||
change.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.addSimultaneousStackEntry(change);
|
||||
|
||||
@@ -384,17 +384,7 @@ public class GameActionUtil {
|
||||
Ability ability = new Ability(card, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
if(controller.isHuman()){
|
||||
Object[] possibleValues = {"Yes", "No"};
|
||||
Object q = JOptionPane.showOptionDialog(null, "Return Vengevine from the graveyard?", "Vengevine Ability",
|
||||
JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE,
|
||||
null, possibleValues, possibleValues[0]);
|
||||
if(q.equals(0)) {
|
||||
if(AllZoneUtil.isCardInPlayerGraveyard(controller, card)) {
|
||||
AllZone.GameAction.moveTo(play, card);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(controller.isComputer() || GameActionUtil.showYesNoDialog(card, "Return Vengevine from the graveyard?")){
|
||||
if(AllZoneUtil.isCardInPlayerGraveyard(controller, card)) {
|
||||
AllZone.GameAction.moveTo(play, card);
|
||||
}
|
||||
@@ -403,14 +393,14 @@ public class GameActionUtil {
|
||||
}; // ability
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(card.getName()).append(" - ").append("Whenever you cast a spell, if it's the second creature ");
|
||||
sb.append(card).append(" - ").append("Whenever you cast a spell, if it's the second creature ");
|
||||
sb.append("spell you cast this turn, you may return Vengevine from your graveyard to the battlefield.");
|
||||
ability.setStackDescription(sb.toString());
|
||||
|
||||
AllZone.Stack.addSimultaneousStackEntry(ability);
|
||||
|
||||
}//if
|
||||
}
|
||||
}//if
|
||||
}
|
||||
}//playCard_Vengevine()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user