mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
Remove unnecessary setText from Imp token code (#11829)
This commit is contained in:
parent
9bad12e6cd
commit
7c42736745
1 changed files with 2 additions and 6 deletions
|
|
@ -1,9 +1,7 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DamagePlayersEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
|
@ -20,10 +18,8 @@ public final class ImpToken extends TokenImpl {
|
|||
toughness = new MageInt(2);
|
||||
|
||||
// When this creature dies, it deals 2 damage to each opponent.
|
||||
Effect effect = new DamagePlayersEffect(2, TargetController.OPPONENT);
|
||||
effect.setText("it deals 2 damage to each opponent");
|
||||
Ability ability = new DiesSourceTriggeredAbility(effect);
|
||||
this.addAbility(ability);
|
||||
this.addAbility(new DiesSourceTriggeredAbility(
|
||||
new DamagePlayersEffect(2, TargetController.OPPONENT)));
|
||||
}
|
||||
|
||||
private ImpToken(final ImpToken token) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue