[CMR] Implemented Nevinyrral, Urborg Tyrant

This commit is contained in:
Evan Kranzler 2020-11-03 08:37:06 -05:00
parent 9531a79eb2
commit 0da9751728
4 changed files with 114 additions and 0 deletions

View file

@ -0,0 +1,47 @@
package mage.abilities.keyword;
import mage.MageObject;
import mage.game.Game;
import java.io.ObjectStreamException;
/**
* Hexproof from artifacts, creatures, and enchantments
*
* @author TheElk801
*/
public class HexproofFromArtifactsCreaturesAndEnchantments extends HexproofBaseAbility {
private static final HexproofFromArtifactsCreaturesAndEnchantments instance;
static {
instance = new HexproofFromArtifactsCreaturesAndEnchantments();
}
private Object readResolve() throws ObjectStreamException {
return instance;
}
public static HexproofFromArtifactsCreaturesAndEnchantments getInstance() {
return instance;
}
private HexproofFromArtifactsCreaturesAndEnchantments() {
super();
}
@Override
public boolean checkObject(MageObject source, Game game) {
return source.isArtifact() || source.isCreature() || source.isEnchantment();
}
@Override
public HexproofFromArtifactsCreaturesAndEnchantments copy() {
return instance;
}
@Override
public String getRule() {
return "hexproof from artifacts, creatures, and enchantments";
}
}