Fix Mindslaver so you can actually take actions for your opponent

This commit is contained in:
drdev
2014-10-15 15:33:47 +00:00
parent 4f3bf5d6fa
commit ab7fb0788e
6 changed files with 52 additions and 45 deletions

View File

@@ -14,8 +14,8 @@ public class LobbyPlayerHuman extends LobbyPlayer implements IGameEntitiesFactor
}
@Override
public PlayerController createControllerFor(Player human) {
return new PlayerControllerHuman(human.getGame(), human, this);
public PlayerController createMindSlaveController(Player master, Player slave) {
return new PlayerControllerHuman(slave, this, (PlayerControllerHuman)master.getController());
}
@Override