forked from External/mage
43 lines
1.1 KiB
Java
43 lines
1.1 KiB
Java
package mage.abilities.keyword;
|
|
|
|
import java.io.ObjectStreamException;
|
|
import mage.abilities.MageSingleton;
|
|
import mage.abilities.common.SimpleStaticAbility;
|
|
import mage.constants.Zone;
|
|
|
|
/**
|
|
* Hexproof from black (This creature or player can't be the target of black
|
|
* spells or abilities your opponents control.)
|
|
*
|
|
* @author igoudt
|
|
*/
|
|
public class HexproofFromBlackAbility extends SimpleStaticAbility implements MageSingleton {
|
|
|
|
private static final HexproofFromBlackAbility instance;
|
|
|
|
static {
|
|
instance = new HexproofFromBlackAbility();
|
|
}
|
|
|
|
private Object readResolve() throws ObjectStreamException {
|
|
return instance;
|
|
}
|
|
|
|
public static HexproofFromBlackAbility getInstance() {
|
|
return instance;
|
|
}
|
|
|
|
private HexproofFromBlackAbility() {
|
|
super(Zone.BATTLEFIELD, null);
|
|
}
|
|
|
|
@Override
|
|
public HexproofFromBlackAbility copy() {
|
|
return instance;
|
|
}
|
|
|
|
@Override
|
|
public String getRule() {
|
|
return "hexproof from black <i>(This creature can't be the target of black spells or abilities your opponents control.)</i>";
|
|
}
|
|
}
|