forked from External/mage
* Spark Double - fixed duplicated counters on copying of another Spark Double (#7553);
This commit is contained in:
parent
f6c0f4c712
commit
2accab79c5
10 changed files with 113 additions and 56 deletions
|
|
@ -53,7 +53,15 @@ public class CopyPermanentEffect extends OneShotEffect {
|
|||
this.applier = applier;
|
||||
this.filter = filter;
|
||||
this.useTargetOfAbility = useTarget;
|
||||
this.staticText = "as a copy of any " + filter.getMessage() + " on the battlefield";
|
||||
|
||||
String text = "as a copy of";
|
||||
if (filter.getMessage().startsWith("a ") || filter.getMessage().startsWith("an ")) {
|
||||
text += " " + filter.getMessage();
|
||||
} else {
|
||||
text += " any " + filter.getMessage() + " on battlefield";
|
||||
}
|
||||
text += applier == null ? "" : applier.getText();
|
||||
this.staticText = text;
|
||||
}
|
||||
|
||||
public CopyPermanentEffect(final CopyPermanentEffect effect) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue