forked from External/mage
make Morph cost reduction a separate class (and fix to work with new system)
This commit is contained in:
parent
3f82c36813
commit
e7927cb50f
8 changed files with 49 additions and 67 deletions
|
|
@ -79,9 +79,6 @@ public class Spell extends StackObjectImpl implements Card {
|
|||
// simulate another side as new card (another code part in continues effect from disturb ability)
|
||||
affectedCard = TransformAbility.transformCardSpellStatic(card, card.getSecondCardFace(), game);
|
||||
}
|
||||
if (ability.getSpellAbilityCastMode() == SpellAbilityCastMode.MORPH){
|
||||
this.faceDown = true;
|
||||
}
|
||||
|
||||
this.card = affectedCard;
|
||||
this.color = affectedCard.getColor(null).copy();
|
||||
|
|
@ -93,6 +90,12 @@ public class Spell extends StackObjectImpl implements Card {
|
|||
this.zoneChangeCounter = affectedCard.getZoneChangeCounter(game); // sync card's ZCC with spell (copy spell settings)
|
||||
this.ability = ability;
|
||||
this.ability.setControllerId(controllerId);
|
||||
|
||||
if (ability.getSpellAbilityCastMode() == SpellAbilityCastMode.MORPH){
|
||||
this.faceDown = true;
|
||||
this.getColor(game).setColor(null);
|
||||
game.getState().getCreateMageObjectAttribute(this.getCard(), game).getSubtype().clear();
|
||||
}
|
||||
if (ability.getSpellAbilityType() == SpellAbilityType.SPLIT_FUSED) {
|
||||
// if this spell is going to be a copy, these abilities will be copied in copySpell
|
||||
if (!isCopy) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue