mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
make the behavior of Vesuvan Doppelganger granted trigger more consistent with other optional triggers.
This commit is contained in:
@@ -2261,12 +2261,17 @@ public class Upkeep extends Phase implements java.io.Serializable {
|
||||
final SpellAbility ability = new Ability(c, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
StringBuilder question = new StringBuilder();
|
||||
question.append("Use triggered ability of ").append(c).append("?");
|
||||
question.append("\r\n").append("(").append(keyword).append(")").append("\r\n");
|
||||
if (GameActionUtil.showYesNoDialog(c, question.toString(), true)) {
|
||||
final Card[] newTarget = new Card[1];
|
||||
newTarget[0] = null;
|
||||
|
||||
final Ability switchTargets = new Ability(c, "0") {
|
||||
@Override
|
||||
public void resolve() {
|
||||
|
||||
if (newTarget[0] != null) {
|
||||
/*
|
||||
* 1. need to select new card - DONE 1a. need to
|
||||
@@ -2304,7 +2309,7 @@ public class Upkeep extends Phase implements java.io.Serializable {
|
||||
@Override
|
||||
public void showMessage() {
|
||||
Singletons.getControl().getMatchControl().showMessage(
|
||||
c.getName() + " - Select new target creature. (Click Cancel to remain as is.)");
|
||||
c.getName() + " - Select target creature.");
|
||||
ButtonUtil.enableOnlyCancel();
|
||||
}
|
||||
|
||||
@@ -2327,10 +2332,11 @@ public class Upkeep extends Phase implements java.io.Serializable {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
ability.setDescription("At the beginning of your upkeep, you may have this creature become "
|
||||
+ "a copy of target creature except it doesn't copy that creature's color. If you do, this creature gains this ability.");
|
||||
ability.setStackDescription(c.getName() + " - you may have this creature become a copy of target creature.");
|
||||
|
||||
ability.setDescription(keyword);
|
||||
ability.setStackDescription("(OPTIONAL) " + keyword);
|
||||
|
||||
AllZone.getStack().addSimultaneousStackEntry(ability);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user