mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
[AFR] Implemented Purple Worm
This commit is contained in:
parent
4f38338fa6
commit
74bb1f895c
4 changed files with 80 additions and 3 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.condition.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
|
|
@ -10,7 +9,6 @@ import mage.watchers.common.MorbidWatcher;
|
|||
* @author nantuko
|
||||
*/
|
||||
public enum MorbidCondition implements Condition {
|
||||
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
@ -23,5 +21,4 @@ public enum MorbidCondition implements Condition {
|
|||
public String toString() {
|
||||
return "if a creature died this turn";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
package mage.abilities.hint.common;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.condition.common.MorbidCondition;
|
||||
import mage.abilities.hint.ConditionHint;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.game.Game;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
* TODO: add this to other morbid cards
|
||||
*/
|
||||
public enum MorbidHint implements Hint {
|
||||
instance;
|
||||
private static final ConditionHint hint = new ConditionHint(
|
||||
MorbidCondition.instance, "A creature died this turn"
|
||||
);
|
||||
|
||||
@Override
|
||||
public String getText(Game game, Ability ability) {
|
||||
return hint.getText(game, ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Hint copy() {
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue