mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
MayLook: refactor it to use timestamp, also handle facedown exile
This commit is contained in:
committed by
Michael Kamensky
parent
aafbdd1a9c
commit
b816bae232
@@ -161,7 +161,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
||||
return;
|
||||
}
|
||||
tempShownCards.add(c);
|
||||
c.setMayLookAt(player, true, true);
|
||||
c.addMayLookTemp(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -178,7 +178,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
||||
}
|
||||
|
||||
for (final Card c : tempShownCards) {
|
||||
c.setMayLookAt(player, false, true);
|
||||
c.removeMayLookTemp(player);
|
||||
}
|
||||
tempShownCards.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user