mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
fixed Goblin Bushwacker giving haste to noncreature permanents
This commit is contained in:
parent
d36d87eb15
commit
dfa3426f87
1 changed files with 14 additions and 3 deletions
|
@ -41,6 +41,7 @@ import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.Duration;
|
import mage.constants.Duration;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -49,7 +50,7 @@ import mage.constants.Duration;
|
||||||
public class GoblinBushwhacker extends CardImpl {
|
public class GoblinBushwhacker extends CardImpl {
|
||||||
|
|
||||||
public GoblinBushwhacker(UUID ownerId, CardSetInfo setInfo) {
|
public GoblinBushwhacker(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{R}");
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R}");
|
||||||
this.subtype.add(SubType.GOBLIN);
|
this.subtype.add(SubType.GOBLIN);
|
||||||
this.subtype.add(SubType.WARRIOR);
|
this.subtype.add(SubType.WARRIOR);
|
||||||
|
|
||||||
|
@ -61,8 +62,18 @@ public class GoblinBushwhacker extends CardImpl {
|
||||||
|
|
||||||
// When Goblin Bushwhacker enters the battlefield, if it was kicked, creatures you control get +1/+0 and gain haste until end of turn.
|
// When Goblin Bushwhacker enters the battlefield, if it was kicked, creatures you control get +1/+0 and gain haste until end of turn.
|
||||||
EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new BoostControlledEffect(1, 0, Duration.EndOfTurn), false);
|
EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new BoostControlledEffect(1, 0, Duration.EndOfTurn), false);
|
||||||
ability.addEffect(new GainAbilityControlledEffect(HasteAbility.getInstance(), Duration.EndOfTurn));
|
ability.addEffect(new GainAbilityControlledEffect(
|
||||||
this.addAbility(new ConditionalTriggeredAbility(ability, KickedCondition.instance, "When {this} enters the battlefield, if it was kicked, creatures you control get +1/+0 and gain haste until end of turn."));
|
HasteAbility.getInstance(),
|
||||||
|
Duration.EndOfTurn,
|
||||||
|
StaticFilters.FILTER_CONTROLLED_CREATURES
|
||||||
|
));
|
||||||
|
this.addAbility(new ConditionalTriggeredAbility(
|
||||||
|
ability,
|
||||||
|
KickedCondition.instance,
|
||||||
|
"When {this} enters the battlefield, "
|
||||||
|
+ "if it was kicked, "
|
||||||
|
+ "creatures you control get +1/+0 and gain haste until end of turn."
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public GoblinBushwhacker(final GoblinBushwhacker card) {
|
public GoblinBushwhacker(final GoblinBushwhacker card) {
|
||||||
|
|
Loading…
Reference in a new issue