mirror of
https://github.com/magefree/mage.git
synced 2025-12-29 06:52:02 -08:00
* Some minor adjustements/changes.
This commit is contained in:
parent
28d46e2a95
commit
ed501cad21
15 changed files with 44 additions and 16 deletions
|
|
@ -367,6 +367,14 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
if (!target.isRequired(sourceId, game)) {
|
||||
return false;
|
||||
}
|
||||
if (target.canTarget(opponentId, null, game)) {
|
||||
target.add(opponentId, game);
|
||||
return true;
|
||||
}
|
||||
if (target.canTarget(playerId, null, game)) {
|
||||
target.add(playerId, game);
|
||||
return true;
|
||||
}
|
||||
throw new IllegalStateException("TargetPermanentOrPlayer wasn't handled. class:" + target.getClass().toString());
|
||||
}
|
||||
if (target instanceof TargetCardInGraveyard) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue