refactor: added face down status to SpellAbilityCastMode (related to #11884);

This commit is contained in:
Oleg Agafonov 2024-02-29 22:33:37 +04:00
parent 057fa2694d
commit 4334ac8987
2 changed files with 12 additions and 8 deletions

View file

@ -100,8 +100,7 @@ public class Spell extends StackObjectImpl implements Card {
this.ability = ability;
this.ability.setControllerId(controllerId);
if (ability.getSpellAbilityCastMode() == SpellAbilityCastMode.MORPH
|| ability.getSpellAbilityCastMode() == SpellAbilityCastMode.MEGAMORPH){
if (ability.getSpellAbilityCastMode().isFaceDown()){
// TODO: need research:
// - why it use game param for color and subtype (possible bug?)
// - is it possible to use BecomesFaceDownCreatureEffect.makeFaceDownObject or like that?