* Bestow - Fixed that a permanent card cast with bestow has the bestow ability as spell ability.

This commit is contained in:
LevelX2 2015-02-03 01:40:08 +01:00
parent 6e45f70335
commit 4efc2a7582
4 changed files with 14 additions and 2 deletions

View file

@ -235,7 +235,8 @@ public class Spell implements StackObject, Card {
// TODO: Find a better way to prevent bestow creatures from being effected by creature affecting abilities
Permanent permanent = game.getPermanent(card.getId());
if (permanent != null && permanent instanceof PermanentCard) {
((PermanentCard) permanent).getCard().getCardType().add(CardType.CREATURE);
permanent.setSpellAbility(ability); // otherwise spell ability without bestow will be set
((PermanentCard) permanent).getCard().getCardType().add(CardType.CREATURE);
}
card.getCardType().add(CardType.CREATURE);
}
@ -1009,4 +1010,9 @@ public class Spell implements StackObject, Card {
card.setZone(zone, game);
}
@Override
public void setSpellAbility(SpellAbility ability) {
throw new UnsupportedOperationException("Not supported.");
}
}