mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
[FDN] Implement Elenda, Saint of Dusk
This commit is contained in:
parent
28e48fe020
commit
05eb4a6189
5 changed files with 134 additions and 2 deletions
|
|
@ -12,9 +12,10 @@ import java.util.Optional;
|
|||
* @author TheElk801
|
||||
*/
|
||||
public enum MoreThanStartingLifeTotalCondition implements Condition {
|
||||
ONE(1),
|
||||
SEVEN(7),
|
||||
TEN(10),
|
||||
FIFTEEN(10);
|
||||
FIFTEEN(15);
|
||||
private final int amount;
|
||||
|
||||
MoreThanStartingLifeTotalCondition(int amount) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,53 @@
|
|||
package mage.abilities.keyword;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
|
||||
/**
|
||||
* Hexproof from instants
|
||||
*
|
||||
* @author ciaccona007
|
||||
*/
|
||||
public class HexproofFromInstantsAbility extends HexproofBaseAbility {
|
||||
|
||||
private static final HexproofFromInstantsAbility instance;
|
||||
|
||||
static {
|
||||
instance = new HexproofFromInstantsAbility();
|
||||
}
|
||||
|
||||
private Object readResolve() throws ObjectStreamException {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static HexproofFromInstantsAbility getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private HexproofFromInstantsAbility() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkObject(MageObject sourceObject, Ability source, Game game) {
|
||||
return sourceObject.isInstant(game);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HexproofFromInstantsAbility copy() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "hexproof from instants";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCardIconHint(Game game) {
|
||||
return "hexproof from instants";
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ import mage.game.Game;
|
|||
import java.io.ObjectStreamException;
|
||||
|
||||
/**
|
||||
* Hexproof from planesalkers
|
||||
* Hexproof from planeswalkers
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue