forked from External/mage
* Improve text generation for some counter abilities * Magus Lucea Kane must apply to permanent spells (bugfix, related to #11440) * Further improve text generation of counter text * Text improvements to a couple cards * Graft text improvements * Further remove unused variable * Be consistent on Backup ability setup, revert Thalia's Lieutenant (filter reuse means it doesn't work) * Thalia's Lieutenant original text was slightly wrong, fixed
42 lines
1 KiB
Java
42 lines
1 KiB
Java
package mage.abilities.keyword;
|
|
|
|
import mage.abilities.StaticAbility;
|
|
import mage.abilities.icon.CardIconImpl;
|
|
import mage.abilities.icon.CardIconType;
|
|
import mage.constants.Zone;
|
|
import mage.util.CardUtil;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public class ToxicAbility extends StaticAbility {
|
|
|
|
private final int amount;
|
|
|
|
public ToxicAbility(int amount) {
|
|
super(Zone.BATTLEFIELD, null);
|
|
this.amount = amount;
|
|
|
|
this.addIcon(new CardIconImpl(CardIconType.ABILITY_INFECT, "Toxic " + amount));
|
|
}
|
|
|
|
private ToxicAbility(final ToxicAbility ability) {
|
|
super(ability);
|
|
this.amount = ability.amount;
|
|
}
|
|
|
|
@Override
|
|
public String getRule() {
|
|
return "toxic " + amount + " <i>(Players dealt combat damage by this creature also get " +
|
|
CardUtil.getSimpleCountersText(amount, "a", "poison") + ".)</i>";
|
|
}
|
|
|
|
@Override
|
|
public ToxicAbility copy() {
|
|
return new ToxicAbility(this);
|
|
}
|
|
|
|
public int getAmount() {
|
|
return amount;
|
|
}
|
|
}
|