mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
fixed Hive Mind creating copies in the wrong order
This commit is contained in:
parent
0651573eac
commit
6abb829b8f
1 changed files with 4 additions and 2 deletions
|
@ -41,6 +41,7 @@ import mage.game.Game;
|
|||
import mage.game.events.GameEvent;
|
||||
import mage.game.stack.Spell;
|
||||
import mage.players.Player;
|
||||
import mage.players.PlayerList;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
/**
|
||||
|
@ -128,8 +129,9 @@ class HiveMindEffect extends OneShotEffect {
|
|||
Spell spell = game.getSpellOrLKIStack(this.getTargetPointer().getFirst(game, source));
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (spell != null && player != null) {
|
||||
for (UUID playerId : game.getState().getPlayersInRange(player.getId(), game)) {
|
||||
if (!playerId.equals(spell.getControllerId())) {
|
||||
PlayerList range = game.getState().getPlayersInRange(player.getId(), game);
|
||||
for (UUID playerId : game.getState().getPlayerList(spell.getControllerId())) {
|
||||
if (!playerId.equals(spell.getControllerId()) && range.contains(playerId)) {
|
||||
spell.createCopyOnStack(game, source, playerId, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue