mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Flashback - Fixed that spells without mana costs (e.g. Ancestral Vision) wrongly could be cast by flashback (fixes #1510).
This commit is contained in:
parent
b4d1607568
commit
a796fe5adb
2 changed files with 40 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue