mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Fixed a bug that if you concede a game while your turn was controlled by another player (e.g. Mindslaver) the control by the other player was still active in the next game of the match.
This commit is contained in:
parent
59c80771e9
commit
6238bca8e5
2 changed files with 9 additions and 3 deletions
|
@ -41,8 +41,8 @@ import mage.constants.TurnPhase;
|
|||
*/
|
||||
public class TurnMod implements Serializable {
|
||||
|
||||
private UUID id;
|
||||
private UUID playerId;
|
||||
private final UUID id;
|
||||
private final UUID playerId;
|
||||
private UUID newControllerId;
|
||||
private boolean extraTurn;
|
||||
private boolean skipTurn;
|
||||
|
|
|
@ -335,6 +335,9 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
this.idleTimeout = false;
|
||||
|
||||
this.turns = 0;
|
||||
this.isGameUnderControl = true;
|
||||
this.turnController = this.getId();
|
||||
this.playersUnderYourControl.clear();
|
||||
this.passed = false;
|
||||
this.passedTurn = false;
|
||||
this.passedAllTurns = false;
|
||||
|
@ -345,7 +348,10 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
this.setReachedNextTurnAfterLeaving(false);
|
||||
game.getState().getWatchers().add(new BloodthirstWatcher(playerId));
|
||||
}
|
||||
|
||||
/**
|
||||
* called before apply effects
|
||||
*
|
||||
*/
|
||||
@Override
|
||||
public void reset() {
|
||||
this.abilities.clear();
|
||||
|
|
Loading…
Reference in a new issue