mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
additional fix to Qarsi Deceiver
This commit is contained in:
parent
c54f53553f
commit
df01c9cbd8
1 changed files with 10 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
|
import mage.game.permanent.Permanent;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
|
@ -74,6 +75,14 @@ class QarsiDeceiverManaCondition implements Condition {
|
||||||
return ((SpellAbility) source).getSpellAbilityCastMode().isFaceDown()
|
return ((SpellAbility) source).getSpellAbilityCastMode().isFaceDown()
|
||||||
&& ((SpellAbility) source).getCharacteristics(game).isCreature(game);
|
&& ((SpellAbility) source).getCharacteristics(game).isCreature(game);
|
||||||
}
|
}
|
||||||
return source instanceof TurnFaceUpAbility; // morph cost or turn manifest creature face up
|
// morph cost or turn manifest creature face up
|
||||||
|
if (source instanceof TurnFaceUpAbility) {
|
||||||
|
Permanent permanent = game.getPermanent(source.getSourceId());
|
||||||
|
if (permanent == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return permanent.isManifested() || permanent.isMorphed();
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue