mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 05:52:06 -08:00
[CMR] Implemented Nevinyrral, Urborg Tyrant
This commit is contained in:
parent
9531a79eb2
commit
0da9751728
4 changed files with 114 additions and 0 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue