mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
fixed bug #3851
This commit is contained in:
parent
0820a0df59
commit
ca11f22580
1 changed files with 4 additions and 1 deletions
|
@ -29,6 +29,7 @@ package mage.cards.w;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BlocksOrBecomesBlockedTriggeredAbility;
|
||||
import mage.abilities.common.DealsDamageToOpponentTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
|
@ -40,6 +41,7 @@ import mage.cards.CardSetInfo;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -57,7 +59,8 @@ public class WitherscaleWurm extends CardImpl {
|
|||
// Whenever Witherscale Wurm blocks or becomes blocked by a creature, that creature gains wither until end of turn.
|
||||
Effect effect = new GainAbilityTargetEffect(WitherAbility.getInstance(), Duration.EndOfTurn);
|
||||
effect.setText("that creature gains wither until end of turn");
|
||||
this.addAbility(new BlocksOrBecomesBlockedTriggeredAbility(effect, false));
|
||||
Ability ability = new BlocksOrBecomesBlockedTriggeredAbility(effect, new FilterCreaturePermanent("a creature"), false, null, true);
|
||||
this.addAbility(ability);
|
||||
|
||||
// Whenever Witherscale Wurm deals damage to an opponent, remove all -1/-1 counters from it.
|
||||
this.addAbility(new DealsDamageToOpponentTriggeredAbility(new RemoveAllCountersSourceEffect(CounterType.M1M1), false));
|
||||
|
|
Loading…
Reference in a new issue