[WHO] Implement The Master, Multiplied (#11356)

This commit is contained in:
PurpleCrowbar 2023-10-29 21:42:02 +00:00 committed by GitHub
parent 7c27e0b999
commit 30b1ef5491
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 135 additions and 10 deletions

View file

@ -23,12 +23,15 @@ import org.apache.log4j.Logger;
public class MyriadAbility extends AttacksTriggeredAbility {
public MyriadAbility() {
super(new MyriadEffect(), false,
"myriad <i>(Whenever this creature attacks, for each opponent other than the defending player, "
+ "put a token that's a copy of this creature onto the battlefield tapped and attacking "
+ "that player or a planeswalker they control. Exile those tokens at the end of combat.)</i>",
SetTargetPointer.PLAYER
);
this(true);
}
public MyriadAbility(boolean showAbilityHint) {
super(new MyriadEffect(), false, "myriad" + (showAbilityHint ?
" <i>(Whenever this creature attacks, for each opponent other than the defending player, " +
"put a token that's a copy of this creature onto the battlefield tapped and attacking " +
"that player or a planeswalker they control. Exile those tokens at the end of combat.)</i>" : ""),
SetTargetPointer.PLAYER);
}
protected MyriadAbility(final MyriadAbility ability) {

View file

@ -1931,7 +1931,9 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
}
boolean successfullyMoved = ZonesHandler.moveCard(zoneChangeInfo, game, source);
//20180810 - 701.3d
detachAllAttachments(game);
if (successfullyMoved) {
detachAllAttachments(game);
}
return successfullyMoved;
}
return false;
@ -1945,7 +1947,9 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
boolean successfullyMoved = ZonesHandler.moveCard(zcInfo, game, source);
//20180810 - 701.3d
detachAllAttachments(game);
if (successfullyMoved) {
detachAllAttachments(game);
}
return successfullyMoved;
}
}