mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
Fix so opponent's hand shown for duration of mindslave turn
This commit is contained in:
@@ -194,13 +194,20 @@ public class MatchController implements IMatchController {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateTurn(final PlayerView player) {
|
public void updateTurn(final PlayerView player) {
|
||||||
//VField nextField = getFieldViewFor(event.turnOwner);
|
|
||||||
//SDisplayUtil.showTab(nextField);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updatePlayerControl() {
|
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
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user