forked from External/mage
[MID] Implemented Sungold Sentinel
This commit is contained in:
parent
6dd0cb69e7
commit
7c2db3c5fc
5 changed files with 231 additions and 0 deletions
|
|
@ -0,0 +1,48 @@
|
|||
package mage.abilities.keyword;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
|
||||
/**
|
||||
* Hexproof from green (This creature or player can't be the target of green
|
||||
* spells or abilities your opponents control.)
|
||||
*
|
||||
* @author igoudt
|
||||
*/
|
||||
public class HexproofFromGreenAbility extends HexproofBaseAbility {
|
||||
|
||||
private static final HexproofFromGreenAbility instance;
|
||||
|
||||
static {
|
||||
instance = new HexproofFromGreenAbility();
|
||||
}
|
||||
|
||||
private Object readResolve() throws ObjectStreamException {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static HexproofFromGreenAbility getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private HexproofFromGreenAbility() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkObject(MageObject source, Game game) {
|
||||
return source.getColor(game).isGreen();
|
||||
}
|
||||
|
||||
@Override
|
||||
public HexproofFromGreenAbility copy() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "hexproof from green <i>(This creature can't be the target of green spells or abilities your opponents control.)</i>";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue