mirror of
https://github.com/correl/mage.git
synced 2025-04-09 17:00:09 -09:00
Pulled from trunk.
This commit is contained in:
parent
3376f418c6
commit
ce7797b8ab
1 changed files with 4 additions and 3 deletions
|
@ -322,9 +322,10 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
||||||
return target.isChosen();
|
return target.isChosen();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (target instanceof TargetCardInHand) {
|
if (target instanceof TargetCardInHand
|
||||||
|
|| (target.getZone().equals(Zone.HAND) && (target instanceof TargetCard))) {
|
||||||
List<Card> cards = new ArrayList<>();
|
List<Card> cards = new ArrayList<>();
|
||||||
for (UUID cardId : ((TargetCardInHand) target).possibleTargets(sourceId, this.getId(), game)) {
|
for (UUID cardId : target.possibleTargets(sourceId, this.getId(), game)) {
|
||||||
Card card = game.getCard(cardId);
|
Card card = game.getCard(cardId);
|
||||||
if (card != null) {
|
if (card != null) {
|
||||||
cards.add(card);
|
cards.add(card);
|
||||||
|
@ -1135,7 +1136,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
||||||
|
|
||||||
protected boolean playManaHandling(Ability ability, ManaCost unpaid, Game game) {
|
protected boolean playManaHandling(Ability ability, ManaCost unpaid, Game game) {
|
||||||
// log.info("paying for " + unpaid.getText());
|
// log.info("paying for " + unpaid.getText());
|
||||||
boolean spendAnyMana = game.getContinuousEffects().asThough(ability.getSourceId(), AsThoughEffectType.SPEND_ANY_MANA, ability, ability.getControllerId(), game);
|
boolean spendAnyMana = game.getContinuousEffects().asThough(ability.getSourceId(), AsThoughEffectType.SPEND_OTHER_MANA, ability, ability.getControllerId(), game);
|
||||||
ManaCost cost;
|
ManaCost cost;
|
||||||
List<Permanent> producers;
|
List<Permanent> producers;
|
||||||
if (unpaid instanceof ManaCosts) {
|
if (unpaid instanceof ManaCosts) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue