foul-magics/Mage/src/main/java/mage/abilities/keyword/IndestructibleAbility.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

56 lines
1.5 KiB
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;
/**
* OLD RULES: 700.4. If a permanent is indestructible, rules and effects can't
* destroy it. (See rule 701.6, "Destroy.") Such permanents are not destroyed by
* lethal damage, and they ignore the lethal-damage state-based action (see rule
* 704.5g). Rules or effects may cause an indestructible permanent to be
* sacrificed, put into a graveyard, or exiled. #
* <p>
* 700.4a Although the text "[This permanent] is indestructible" is an ability,
* actually being indestructible is neither an ability nor a characteristic.
* It's just something that's true about a permanent.
* <p>
* NEW RULES
*
* @author BetaSteward_at_googlemail.com
*/
public class IndestructibleAbility extends StaticAbility implements MageSingleton {
private static final IndestructibleAbility instance;
static {
instance = new IndestructibleAbility();
instance.addIcon(CardIconImpl.ABILITY_INDESTRUCTIBLE);
}
private Object readResolve() throws ObjectStreamException {
return instance;
}
public static IndestructibleAbility getInstance() {
return instance;
}
private IndestructibleAbility() {
super(Zone.BATTLEFIELD, null);
}
@Override
public IndestructibleAbility copy() {
return instance;
}
@Override
public String getRule() {
return "indestructible";
}
}