mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
improved AI targetting
This commit is contained in:
parent
6ea73a6726
commit
aed200bc11
13 changed files with 129 additions and 105 deletions
|
|
@ -236,7 +236,7 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean choose(Cards cards, TargetCard target, Game game) {
|
||||
public boolean choose(Outcome outcome, Cards cards, TargetCard target, Game game) {
|
||||
while (!abort) {
|
||||
game.fireSelectTargetEvent(playerId, target.getMessage(), cards, target.isRequired());
|
||||
waitForResponse();
|
||||
|
|
@ -253,7 +253,7 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean chooseTarget(Cards cards, TargetCard target, Ability source, Game game) {
|
||||
public boolean chooseTarget(Outcome outcome, Cards cards, TargetCard target, Ability source, Game game) {
|
||||
while (!abort) {
|
||||
game.fireSelectTargetEvent(playerId, target.getMessage(), cards, target.isRequired());
|
||||
waitForResponse();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue