mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
[NCC] Implemented Extravagant Replication
This commit is contained in:
parent
f56b7639ab
commit
9bfd17e653
3 changed files with 57 additions and 5 deletions
|
|
@ -286,20 +286,23 @@ public class CreateTokenCopyTargetEffect extends OneShotEffect {
|
|||
if (tapped && !attacking) {
|
||||
sb.append("tapped ");
|
||||
}
|
||||
sb.append("token that's a copy of target ");
|
||||
sb.append("token that's a copy of ");
|
||||
} else {
|
||||
sb.append(number);
|
||||
sb.append(" ");
|
||||
if (tapped && !attacking) {
|
||||
sb.append("tapped ");
|
||||
}
|
||||
sb.append("tokens that are copies of target ");
|
||||
sb.append("tokens that are copies of ");
|
||||
}
|
||||
if (!mode.getTargets().isEmpty()) {
|
||||
sb.append(mode.getTargets().get(0).getTargetName());
|
||||
} else {
|
||||
if (mode.getTargets().isEmpty()) {
|
||||
throw new UnsupportedOperationException("Using default rule generation of target effect without having a target object");
|
||||
}
|
||||
String targetName = mode.getTargets().get(0).getTargetName();
|
||||
if (!targetName.startsWith("another target")) {
|
||||
sb.append("target ");
|
||||
}
|
||||
sb.append(targetName);
|
||||
|
||||
if (attacking) {
|
||||
sb.append(" that are");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue