* Rite of Passage - Fixed wrong tooltip text.

This commit is contained in:
LevelX2 2015-09-02 12:56:27 +02:00
parent 86ababf674
commit 4a98e1ba07
2 changed files with 9 additions and 11 deletions

View file

@ -53,12 +53,11 @@ public class RiteOfPassage extends CardImpl {
super(ownerId, 91, "Rite of Passage", Rarity.RARE, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}");
this.expansionSetCode = "5DN";
// Whenever a creature you control is dealt damage, put a +1/+1 counter on it.
Effect effect = new AddCountersTargetEffect(CounterType.P1P1.createInstance());
effect.setText("put a +1/+1 counter on it");
this.addAbility(new RiteOfPassageTriggeredAbility(effect));
}
public RiteOfPassage(final RiteOfPassage card) {
@ -74,7 +73,7 @@ public class RiteOfPassage extends CardImpl {
class RiteOfPassageTriggeredAbility extends TriggeredAbilityImpl {
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();
public RiteOfPassageTriggeredAbility(Effect effect) {
super(Zone.BATTLEFIELD, effect);
}
@ -108,6 +107,6 @@ class RiteOfPassageTriggeredAbility extends TriggeredAbilityImpl {
@Override
public String getRule() {
return "Whenever {this} is dealt damage, " + super.getRule();
return "Whenever a creature you control is dealt damage, " + super.getRule();
}
}
}

View file

@ -28,13 +28,12 @@
package mage.sets.tempest;
import java.util.UUID;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Rarity;
import mage.constants.Zone;
import mage.game.Game;
import mage.game.events.GameEvent;
@ -86,7 +85,7 @@ class DeathPitsOfRathTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
for(Effect effect : this.getEffects()) {
for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(event.getTargetId()));
}
return true;
@ -94,6 +93,6 @@ class DeathPitsOfRathTriggeredAbility extends TriggeredAbilityImpl {
@Override
public String getRule() {
return "Whenever a creature is dealt damage, destroy it. It can't be regenerated";
return "Whenever a creature is dealt damage, destroy it. It can't be regenerated.";
}
}
}