forked from External/mage
* Fixed that AI used activated abilities for Battlefield as the card was on hand (fix #588).
This commit is contained in:
parent
b3b51f9f1e
commit
54f0fd8fc1
5 changed files with 14 additions and 8 deletions
|
|
@ -2021,8 +2021,8 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
|
||||
if (hidden) {
|
||||
for (Card card : hand.getUniqueCards(game)) {
|
||||
for (Ability ability : card.getAbilities()) {
|
||||
if (ability instanceof ActivatedAbility) {
|
||||
for (Ability ability : card.getAbilities().getPlayableAbilities(Zone.HAND)) { // gets this activated ability from hand? (Morph?)
|
||||
if (ability instanceof ActivatedAbility) {
|
||||
if (ability instanceof PlayLandAbility) {
|
||||
if (game.getContinuousEffects().preventedByRuleModification(GameEvent.getEvent(GameEvent.EventType.PLAY_LAND, ability.getSourceId(), ability.getSourceId(), playerId), ability, game, true)) {
|
||||
break;
|
||||
|
|
@ -2033,7 +2033,8 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
}
|
||||
}
|
||||
if (ability instanceof AlternativeSourceCosts) {
|
||||
|
||||
// something missing here
|
||||
int test = 6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue