Fixed a bug of Howlpack Alpha giving its boost also if not the active face.

This commit is contained in:
LevelX2 2013-05-22 17:24:31 +02:00
parent 5b4c2eb3fa
commit 52425d0abb

View file

@ -47,6 +47,8 @@ import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.game.permanent.token.WolfToken;
import java.util.UUID;
import mage.abilities.decorator.ConditionalContinousEffect;
import mage.abilities.effects.Effect;
/**
*
@ -76,7 +78,9 @@ public class HowlpackAlpha extends CardImpl<HowlpackAlpha> {
this.toughness = new MageInt(3);
// Other Werewolf and Wolf creatures you control get +1/+1.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter, true)));
Effect effect = new ConditionalContinousEffect(new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter, true), new TransformedCondition(), null);
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
// At the beginning of your end step, put a 2/2 green Wolf creature token onto the battlefield.
this.addAbility(new ConditionalTriggeredAbility(new BeginningOfYourEndStepTriggeredAbility(new CreateTokenEffect(new WolfToken()), false), new TransformedCondition(), ruleText));