[AKH] Another fixes

This commit is contained in:
Styxo 2017-04-16 16:03:02 +02:00
parent c8e7c7fb15
commit ddf7dc1f0b
3 changed files with 8 additions and 8 deletions

View file

@ -52,6 +52,7 @@ import mage.game.permanent.Permanent;
import mage.players.Player;
import mage.target.Target;
import mage.target.common.TargetCardInHand;
import mage.target.common.TargetCreaturePermanent;
import mage.target.targetpointer.FixedTarget;
/**
@ -66,6 +67,7 @@ public class ShedWeakness extends CardImpl {
// Target creature gets +2/+2 until end of turn. You may remove a -1/-1 counter from it.
getSpellAbility().addEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn));
getSpellAbility().addEffect(new MayRemoveM1M1CouterTargetEffect());
getSpellAbility().addTarget(new TargetCreaturePermanent());
}
public ShedWeakness(final ShedWeakness card) {

View file

@ -59,9 +59,7 @@ public class Soulstinger extends CardImpl {
this.toughness = new MageInt(5);
// When Soulstinger enters the battlefield, put two -1/-1 counter on target creature you control.
Ability ability =
new EntersBattlefieldTriggeredAbility(
new AddCountersTargetEffect(CounterType.M1M1.createInstance(), new StaticValue(2), Outcome.Detriment));
Ability ability = new EntersBattlefieldTriggeredAbility( new AddCountersTargetEffect(CounterType.M1M1.createInstance(2)));
ability.addTarget(new TargetControlledCreaturePermanent());
this.addAbility(ability);
@ -72,7 +70,7 @@ public class Soulstinger extends CardImpl {
new CountersSourceCount(CounterType.M1M1),
Outcome.Detriment);
effect.setText("you may put a -1/-1 counter on target creature for each -1/-1 counter on {this}");
ability = new DiesTriggeredAbility(effect);
ability = new DiesTriggeredAbility(effect, true);
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

View file

@ -55,7 +55,7 @@ public class TrespassersCurse extends CardImpl {
public TrespassersCurse(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{B}");
this.subtype.add("Aura");
this.subtype.add("Curse");
@ -67,6 +67,7 @@ public class TrespassersCurse extends CardImpl {
this.addAbility(ability);
// Whenever a creature enters the battlefield under enchanted player's control, that player loses 1 life and you gain 1 life.
this.addAbility(new TrespassersCurseTriggeredAbility());
}
public TrespassersCurse(final TrespassersCurse card) {
@ -79,7 +80,6 @@ public class TrespassersCurse extends CardImpl {
}
}
class TrespassersCurseTriggeredAbility extends TriggeredAbilityImpl {
public TrespassersCurseTriggeredAbility() {
@ -101,7 +101,7 @@ class TrespassersCurseTriggeredAbility extends TriggeredAbilityImpl {
if (enchantment != null
&& enchantment.getAttachedTo() != null
&& game.getControllerId(event.getSourceId()).equals(enchantment.getAttachedTo())) {
for (Effect effect: this.getEffects()) {
for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(enchantment.getAttachedTo()));
}
return true;
@ -148,4 +148,4 @@ class TrespassersCurseEffect extends OneShotEffect {
}
return false;
}
}
}