Fix AlternativeCost. It's no longer possible to cast spells with alternative caost for any zone

This commit is contained in:
Plopman 2013-04-05 17:58:37 +02:00
parent 5e8a6538ba
commit cecc8bc1df

View file

@ -718,7 +718,9 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
for (ActivatedAbility ability: object.getAbilities().getActivatedAbilities(Zone.HAND)) {
useable.put(ability.getId(), ability);
}
} else {
}
//Alternative cost are not use for Flashback. This lines alloews to play spell with Alternative cost (like Force of Will) from wrong zone
/*else {
// this allows alternative costs like Flashback work from other than hand zones
for (ActivatedAbility ability: object.getAbilities().getActivatedAbilities(Zone.HAND)) {
for (AlternativeCost cost: ability.getAlternativeCosts()) {
@ -727,7 +729,7 @@ public abstract class PlayerImpl<T extends PlayerImpl<T>> implements Player, Ser
}
}
}
}
}*/
}
Abilities<ActivatedAbility> otherAbilities = game.getState().getOtherAbilities(object.getId(), zone);
if (otherAbilities != null) {