foul-magics/Mage/src/main/java/mage/abilities/keyword/DefenderAbility.java
Alexander Novotny fae63d9d4b
Add additional ability icons (#10549)
* 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
2023-07-04 01:22:07 +04:00

44 lines
933 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 DefenderAbility extends StaticAbility implements MageSingleton {
private static final DefenderAbility instance;
static {
instance = new DefenderAbility();
instance.addIcon(CardIconImpl.ABILITY_DEFENDER);
}
private Object readResolve() throws ObjectStreamException {
return instance;
}
public static DefenderAbility getInstance() {
return instance;
}
private DefenderAbility() {
super(Zone.BATTLEFIELD, null);
}
@Override
public String getRule() {
return "defender";
}
@Override
public DefenderAbility copy() {
return instance;
}
}