mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 04:09:54 -08:00
Attackers sorting, Blocking groups - rule 509.3. Fixed Issue 195.
This commit is contained in:
parent
4627c92d41
commit
d33bf20bf0
11 changed files with 209 additions and 43 deletions
|
|
@ -469,6 +469,22 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public UUID chooseAttackerOrder(List<Permanent> attackers, Game game) {
|
||||
while (!abort) {
|
||||
game.fireSelectTargetEvent(playerId, "Pick attacker", attackers, true);
|
||||
waitForResponse();
|
||||
if (response.getUUID() != null) {
|
||||
for (Permanent perm: attackers) {
|
||||
if (perm.getId().equals(response.getUUID()))
|
||||
return perm.getId();
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public UUID chooseBlockerOrder(List<Permanent> blockers, Game game) {
|
||||
while (!abort) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue