mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
* AI - Improved nadling of target selection if AI doe smot control the ability itself.
This commit is contained in:
parent
f682bfb527
commit
ec96f8a18e
1 changed files with 2 additions and 2 deletions
|
@ -154,7 +154,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
&& target.getAbilityController() != null) {
|
||||
abilityControllerId = target.getAbilityController();
|
||||
}
|
||||
UUID randomOpponentId = getRandomOpponent(abilityControllerId, game);
|
||||
UUID randomOpponentId = getRandomOpponent(target.getTargetController() == null ? abilityControllerId : target.getTargetController(), game);
|
||||
if (target.getOriginalTarget() instanceof TargetPlayer) {
|
||||
return setTargetPlayer(outcome, target, null, sourceId, abilityControllerId, randomOpponentId, game);
|
||||
}
|
||||
|
@ -438,7 +438,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
if (target.getAbilityController() != null) {
|
||||
abilityControllerId = target.getAbilityController();
|
||||
}
|
||||
UUID randomOpponentId = getRandomOpponent(abilityControllerId, game);
|
||||
UUID randomOpponentId = getRandomOpponent(target.getTargetController() == null ? source.getControllerId() : target.getTargetController(), game);
|
||||
if (target.getOriginalTarget() instanceof TargetPlayer) {
|
||||
return setTargetPlayer(outcome, target, source, source.getSourceId(), abilityControllerId, randomOpponentId, game);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue