forked from External/mage
* Slightly revamped basic card icons All icon classes which were just static text have been removed, and instead replaced with a static instance. A new icon for reach has been added Some icons have been reused for new abilities (hexproof for shroud and ward, infect for toxic) When a card would have two icons of the same type, the icons are instead combines into one with a combined hover tooltip. * Fixed missing capitalization on ward, hexproof
48 lines
990 B
Java
48 lines
990 B
Java
|
|
package mage.abilities.keyword;
|
|
|
|
import mage.constants.Zone;
|
|
import mage.abilities.MageSingleton;
|
|
import mage.abilities.StaticAbility;
|
|
import mage.abilities.icon.CardIconImpl;
|
|
import mage.abilities.icon.CardIconType;
|
|
|
|
import java.io.ObjectStreamException;
|
|
|
|
/**
|
|
*
|
|
* @author BetaSteward_at_googlemail.com
|
|
*/
|
|
public class ReachAbility extends StaticAbility implements MageSingleton {
|
|
|
|
private static final ReachAbility instance;
|
|
|
|
static {
|
|
instance = new ReachAbility();
|
|
instance.addIcon(
|
|
new CardIconImpl(CardIconType.ABILITY_REACH, "Reach"));
|
|
}
|
|
|
|
private Object readResolve() throws ObjectStreamException {
|
|
return instance;
|
|
}
|
|
|
|
public static ReachAbility getInstance() {
|
|
return instance;
|
|
}
|
|
|
|
private ReachAbility() {
|
|
super(Zone.ALL, null);
|
|
}
|
|
|
|
@Override
|
|
public String getRule() {
|
|
return "reach";
|
|
}
|
|
|
|
@Override
|
|
public ReachAbility copy() {
|
|
return instance;
|
|
}
|
|
|
|
}
|