1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-03 17:00:16 -09:00

AI can play the effect of Sphinx of Uthuun now.

This commit is contained in:
North 2011-08-27 18:10:06 +03:00
parent d48bcf6d06
commit 66fe17a0e2
3 changed files with 6 additions and 2 deletions
Mage.Server.Plugins/Mage.Player.AI/src/main/java/mage/player/ai
Mage.Sets/src/mage/sets
championsofkamigawa
scarsofmirrodin

View file

@ -789,6 +789,9 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
target.addTarget(card.getId(), source, game); target.addTarget(card.getId(), source, game);
cardChoices.remove(card); cardChoices.remove(card);
} }
if (outcome.equals(Outcome.Neutral) && target.getTargets().size() > target.getNumberOfTargets() + (target.getMaxNumberOfTargets() - target.getNumberOfTargets()) / 2) {
return true;
}
} }
return true; return true;
} }
@ -809,6 +812,9 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
target.add(card.getId(), game); target.add(card.getId(), game);
cardChoices.remove(card); cardChoices.remove(card);
} }
if (outcome.equals(Outcome.Neutral) && target.getTargets().size() > target.getNumberOfTargets() + (target.getMaxNumberOfTargets() - target.getNumberOfTargets()) / 2) {
return true;
}
} }
return true; return true;
} }

View file

@ -51,7 +51,6 @@ import mage.target.TargetPlayer;
/** /**
* *
* @author Loki * @author Loki
* TODO: add normal chooser for int
*/ */
public class Mindblaze extends CardImpl<Mindblaze> { public class Mindblaze extends CardImpl<Mindblaze> {

View file

@ -44,7 +44,6 @@ import mage.cards.CardImpl;
import mage.game.Game; import mage.game.Game;
import mage.game.events.GameEvent; import mage.game.events.GameEvent;
import mage.game.events.GameEvent.EventType; import mage.game.events.GameEvent.EventType;
import mage.players.ManaPool;
import mage.players.Player; import mage.players.Player;
/** /**