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
44 lines
1,004 B
Java
44 lines
1,004 B
Java
package mage.abilities.keyword;
|
|
|
|
import mage.abilities.MageSingleton;
|
|
import mage.abilities.StaticAbility;
|
|
import mage.abilities.icon.CardIconImpl;
|
|
import mage.constants.Zone;
|
|
|
|
import java.io.ObjectStreamException;
|
|
|
|
/**
|
|
* @author BetaSteward_at_googlemail.com
|
|
*/
|
|
public class LifelinkAbility extends StaticAbility implements MageSingleton {
|
|
|
|
private static final LifelinkAbility instance;
|
|
|
|
static {
|
|
instance = new LifelinkAbility();
|
|
instance.addIcon(CardIconImpl.ABILITY_LIFELINK);
|
|
}
|
|
|
|
private Object readResolve() throws ObjectStreamException {
|
|
return instance;
|
|
}
|
|
|
|
public static LifelinkAbility getInstance() {
|
|
return instance;
|
|
}
|
|
|
|
private LifelinkAbility() {
|
|
super(Zone.ALL, null);
|
|
}
|
|
|
|
@Override
|
|
public String getRule() {
|
|
return "lifelink <i>(Damage dealt by this creature also causes you to gain that much life.)</i>";
|
|
}
|
|
|
|
@Override
|
|
public LifelinkAbility copy() {
|
|
return instance;
|
|
}
|
|
|
|
}
|