* Flashback - Fixed that spells without mana costs (e.g. Ancestral Vision) wrongly could be cast by flashback (fixes #1510).

This commit is contained in:
LevelX2 2016-02-03 00:22:29 +01:00
parent b4d1607568
commit a796fe5adb
2 changed files with 40 additions and 0 deletions

View file

@ -86,6 +86,10 @@ public class FlashbackAbility extends SpellAbility {
if (super.canActivate(playerId, game)) {
Card card = game.getCard(getSourceId());
if (card != null) {
// Cards with no Mana Costs cant't be flashbacked (e.g. Ancestral Vision)
if (card.getManaCost().isEmpty()) {
return false;
}
// Flashback can never cast a split card by Fuse, because Fuse only works from hand
if (card.isSplitCard()) {
if (((SplitCard) card).getLeftHalfCard().getName().equals(abilityName)) {