* Fixed that AI used activated abilities for Battlefield as the card was on hand (fix #588).

This commit is contained in:
LevelX2 2014-10-03 13:12:03 +02:00
parent b3b51f9f1e
commit 54f0fd8fc1
5 changed files with 14 additions and 8 deletions

View file

@ -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;
}
}
}