* Bestow Ability - Fixed that a card cast with Bestow will be recognized as Aura for cost reduction (e.g. Hero of Iroas).

This commit is contained in:
LevelX2 2014-12-09 23:53:49 +01:00
parent 72fabb13ac
commit 68fed320f7
4 changed files with 14 additions and 6 deletions

View file

@ -572,6 +572,14 @@ public class Spell implements StackObject, Card {
@Override
public boolean hasSubtype(String subtype) {
if (this.getSpellAbility() instanceof BestowAbility) { // workaround for Bestow (don't like it)
List<String> subtypes = new ArrayList<>();
subtypes.addAll(card.getSubtype());
subtypes.add("Aura");
if (subtypes.contains(subtype)) {
return true;
}
}
return card.hasSubtype(subtype);
}