mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 21:12:04 -08:00
[MKM] Implement Niv-Mizzet, Guildpact (#11787)
* [MKM] Implement Niv-Mizzet, Guildpact * Address comments
This commit is contained in:
parent
b88cd910c3
commit
a042e97c30
3 changed files with 201 additions and 0 deletions
|
|
@ -0,0 +1,47 @@
|
|||
package mage.abilities.keyword;
|
||||
|
||||
import java.io.ObjectStreamException;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.game.Game;
|
||||
|
||||
public class HexproofFromMulticoloredAbility extends HexproofBaseAbility {
|
||||
|
||||
private static final HexproofFromMulticoloredAbility instance;
|
||||
|
||||
static {
|
||||
instance = new HexproofFromMulticoloredAbility();
|
||||
}
|
||||
|
||||
private Object readResolve() throws ObjectStreamException {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static HexproofFromMulticoloredAbility getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private HexproofFromMulticoloredAbility() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public HexproofFromMulticoloredAbility copy() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkObject(MageObject source, Game game) {
|
||||
return source.getColor().isMulticolored();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "hexproof from multicolored <i>(This creature can't be the target of multicolored spells or abilities your opponents control.)</i>";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCardIconHint(Game game) {
|
||||
return "hexproof from multicolored";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue