[BOT] Implement Megatron, Tyrant // Megatron, Destructive Force (#10666)

* [BOT] Implement Megatron, Tyrant // Megatron, Destructive Force

* fix verify test.

* cleanup AbilityCastMode for Disturb & MoreThanMeetsTheEye

* cleanup unecessary checks.

* fix duration of silence static effect

* fix Disturb tests
This commit is contained in:
Susucre 2023-07-29 19:45:09 +02:00 committed by GitHub
parent 32e340032b
commit 4856c65443
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 310 additions and 19 deletions

View file

@ -5,7 +5,6 @@ import mage.cards.Card;
import mage.game.Game;
/**
*
* @author LevelX2
*/
public enum SpellAbilityCastMode {
@ -13,12 +12,26 @@ public enum SpellAbilityCastMode {
MADNESS("Madness"),
FLASHBACK("Flashback"),
BESTOW("Bestow"),
TRANSFORMED("Transformed");
TRANSFORMED("Transformed", true),
DISTURB("Disturb", true),
MORE_THAN_MEETS_THE_EYE("More than Meets the Eye", true);
private final String text;
// Should the cast mode use the second face?
private final boolean isTransformed;
public boolean isTransformed() {
return this.isTransformed;
}
SpellAbilityCastMode(String text) {
this(text, false);
}
SpellAbilityCastMode(String text, boolean isTransformed) {
this.text = text;
this.isTransformed = isTransformed;
}
@Override