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
45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
package mage.abilities.keyword;
|
|
|
|
import mage.abilities.MageSingleton;
|
|
import mage.abilities.StaticAbility;
|
|
import mage.abilities.icon.CardIconImpl;
|
|
import mage.abilities.icon.CardIconType;
|
|
import mage.constants.Zone;
|
|
|
|
import java.io.ObjectStreamException;
|
|
|
|
/**
|
|
* @author Fubs
|
|
*/
|
|
public class TrampleOverPlaneswalkersAbility extends StaticAbility implements MageSingleton {
|
|
|
|
private static final TrampleOverPlaneswalkersAbility instance;
|
|
|
|
static {
|
|
instance = new TrampleOverPlaneswalkersAbility();
|
|
instance.addIcon(new CardIconImpl(CardIconType.ABILITY_TRAMPLE, "Trample over planeswalkers"));
|
|
}
|
|
|
|
private Object readResolve() throws ObjectStreamException {
|
|
return instance;
|
|
}
|
|
|
|
public static TrampleOverPlaneswalkersAbility getInstance() {
|
|
return instance;
|
|
}
|
|
|
|
private TrampleOverPlaneswalkersAbility() {
|
|
super(Zone.BATTLEFIELD, null);
|
|
}
|
|
|
|
@Override
|
|
public String getRule() {
|
|
return "Trample over planeswalkers <i>(This creature can deal excess combat damage to the controller of the planeswalker it's attacking.)</i>";
|
|
}
|
|
|
|
@Override
|
|
public TrampleOverPlaneswalkersAbility copy() {
|
|
return instance;
|
|
}
|
|
|
|
}
|