mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Bestow - Fixed that if cast with bestow the spell on the stack is no creature card type.
This commit is contained in:
parent
d42500c586
commit
78959ebbaa
1 changed files with 7 additions and 0 deletions
|
@ -56,6 +56,7 @@ import mage.watchers.Watcher;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.abilities.keyword.BestowAbility;
|
||||
|
||||
import mage.cards.SplitCard;
|
||||
|
||||
|
@ -313,6 +314,12 @@ public class Spell<T extends Spell<T>> implements StackObject, Card {
|
|||
|
||||
@Override
|
||||
public List<CardType> getCardType() {
|
||||
if (this.getSpellAbility() instanceof BestowAbility) {
|
||||
List<CardType> cardTypes = new ArrayList<CardType>();
|
||||
cardTypes.addAll(card.getCardType());
|
||||
cardTypes.remove(CardType.CREATURE);
|
||||
return cardTypes;
|
||||
}
|
||||
return card.getCardType();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue