Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary setText from Imp token code #11829

Merged
merged 3 commits into from
Feb 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary setText
DominionSpy committed Feb 21, 2024
commit 4c1efa3e0d82187af206a78e4dce1f62ba357b52
8 changes: 2 additions & 6 deletions Mage/src/main/java/mage/game/permanent/token/ImpToken.java
Original file line number Diff line number Diff line change
@@ -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 ImpToken() {
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) {