mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
- Fixed #8497
This commit is contained in:
parent
ebb9d7c22f
commit
75375f2ed5
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ import java.util.UUID;
|
||||||
*/
|
*/
|
||||||
public class ControlCombatRedundancyWatcher extends Watcher { // workaround for solving timestamp issues regarding "you choose which creatures block and how those creatures block" effects
|
public class ControlCombatRedundancyWatcher extends Watcher { // workaround for solving timestamp issues regarding "you choose which creatures block and how those creatures block" effects
|
||||||
|
|
||||||
private static final class PlayerDuration {
|
private static final class PlayerDuration implements java.io.Serializable { // class must be serilizable Bug #8497
|
||||||
|
|
||||||
private final Duration duration;
|
private final Duration duration;
|
||||||
private final UUID playerId;
|
private final UUID playerId;
|
||||||
|
|
@ -63,6 +63,7 @@ public class ControlCombatRedundancyWatcher extends Watcher { // workaround for
|
||||||
|
|
||||||
public static void addBlockingController(UUID playerId, Duration duration, Game game) {
|
public static void addBlockingController(UUID playerId, Duration duration, Game game) {
|
||||||
ControlCombatRedundancyWatcher watcher = game.getState().getWatcher(ControlCombatRedundancyWatcher.class);
|
ControlCombatRedundancyWatcher watcher = game.getState().getWatcher(ControlCombatRedundancyWatcher.class);
|
||||||
|
System.out.println("The watcher is okay? " + watcher);
|
||||||
watcher.blockingControllers.add(0, new PlayerDuration(duration, playerId));
|
watcher.blockingControllers.add(0, new PlayerDuration(duration, playerId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue