mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
Minor fix to target handlling.
This commit is contained in:
parent
af4a40d5d5
commit
c2ee9ef4ad
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
if (!target.isRequired(sourceId, game)) {
|
||||
if (!target.isRequired(sourceId, game) || target.getNumberOfTargets() == 0) {
|
||||
return false;
|
||||
}
|
||||
if (target.canTarget(opponentId, null, game)) {
|
||||
|
|
Loading…
Reference in a new issue