* Hive Mind - Fixed that always got players other than controller got the copies instead correctly players other than controller of the casted spell.

This commit is contained in:
LevelX2 2014-06-09 23:40:52 +02:00
parent 28104322a5
commit 026b3a41c3

View file

@ -29,14 +29,14 @@ package mage.sets.magic2010;
import java.util.Set;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.abilities.Ability;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.OneShotEffect;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Outcome;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.game.stack.Spell;
@ -126,7 +126,7 @@ class HiveMindEffect extends OneShotEffect {
if (spell != null && player != null) {
Set<UUID> players = player.getInRange();
for (UUID playerId : players) {
if (!playerId.equals(source.getControllerId())) {
if (!playerId.equals(spell.getControllerId())) {
Spell copy = spell.copySpell();
copy.setControllerId(playerId);
copy.setCopiedSpell(true);