Fixed handling to show playable cards with alternate costs.

This commit is contained in:
LevelX2 2014-11-29 15:05:27 +01:00
parent 03c7a815f7
commit 73a41aef4a
3 changed files with 19 additions and 10 deletions

View file

@ -2167,9 +2167,6 @@ public abstract class PlayerImpl implements Player, Serializable {
playable.add(ability);
}
}
// if (ability instanceof AlternativeSourceCosts) {
//
// }
}
}
}
@ -2279,12 +2276,12 @@ public abstract class PlayerImpl implements Player, Serializable {
break;
}
}
for (ActivatedAbility ability : card.getAbilities().getActivatedAbilities(Zone.HAND)) {
if (!playable.contains(ability.getSourceId()) && canPlay(ability, available, card, game)) {
playable.add(card.getId());
break;
}
}
// for (ActivatedAbility ability : card.getAbilities().getActivatedAbilities(Zone.HAND)) {
// if (!playable.contains(ability.getSourceId()) && canPlay(ability, available, card, game)) {
// playable.add(card.getId());
// break;
// }
// }
}
}