forked from External/mage
* 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:
parent
72fabb13ac
commit
68fed320f7
4 changed files with 14 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue