mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Fix so opponent's hand shown for duration of mindslave turn
This commit is contained in:
@@ -194,15 +194,22 @@ public class MatchController implements IMatchController {
|
||||
|
||||
@Override
|
||||
public void updateTurn(final PlayerView player) {
|
||||
//VField nextField = getFieldViewFor(event.turnOwner);
|
||||
//SDisplayUtil.showTab(nextField);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updatePlayerControl() {
|
||||
//TODO
|
||||
//show/hide hand for top player based on whether the opponent is controlled
|
||||
if (MatchUtil.getHumanCount() == 1) {
|
||||
Player player = MatchUtil.getGameView().getPlayer(view.getTopPlayerPanel().getPlayer());
|
||||
if (player.getMindSlaveMaster() != null) {
|
||||
view.getTopPlayerPanel().setSelectedZone(ZoneType.Hand);
|
||||
}
|
||||
else {
|
||||
view.getTopPlayerPanel().setSelectedTab(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void disableOverlay() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user