forked from External/mage
Fix casting Transformed (#10778)
* Combine casting Transformed into a shared SpellAbility, apply transform effect before spell is cast * Minor cleanup * Use effect.apply() rather than game.applyEffects() * Add test with Maskwood Nexus
This commit is contained in:
parent
8859637844
commit
b6dbc782be
9 changed files with 259 additions and 172 deletions
|
|
@ -44,6 +44,12 @@ public enum SpellAbilityCastMode {
|
|||
if (this.equals(BESTOW)) {
|
||||
BestowAbility.becomeAura(cardCopy);
|
||||
}
|
||||
if (this.isTransformed){
|
||||
Card tmp = card.getSecondCardFace();
|
||||
if (tmp != null) {
|
||||
cardCopy = tmp.copy();
|
||||
}
|
||||
}
|
||||
return cardCopy;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue