mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Myriad - Fixed that wrongly also a token was created for the defending player.
This commit is contained in:
parent
bc42e48c4a
commit
be49cfc561
1 changed files with 2 additions and 1 deletions
|
@ -61,8 +61,9 @@ class MyriadEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
Permanent sourceObject = game.getPermanentOrLKIBattlefield(source.getSourceId());
|
||||
if (controller != null && sourceObject != null) {
|
||||
UUID defendingPlayerId = game.getCombat().getDefendingPlayerId(source.getSourceId(), game);
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
if (playerId != getTargetPointer().getFirst(game, source) && controller.hasOpponent(playerId, game)) {
|
||||
if (playerId != defendingPlayerId && controller.hasOpponent(playerId, game)) {
|
||||
Player opponent = game.getPlayer(playerId);
|
||||
if (opponent != null && controller.chooseUse(Outcome.PutCreatureInPlay,
|
||||
"Put a copy of " + sourceObject.getIdName() + " onto battlefield attacking " + opponent.getName() + "?", source, game)) {
|
||||
|
|
Loading…
Reference in a new issue