* Brutal Hordechief - Fixed duration of requirement effect and fixed that the attacker choose how to block did not work correctly.

This commit is contained in:
LevelX2 2015-03-23 16:53:04 +01:00
parent a137ec1633
commit 993fe37108

View file

@ -58,7 +58,7 @@ import mage.target.targetpointer.FixedTarget;
*/ */
public class BrutalHordechief extends CardImpl { public class BrutalHordechief extends CardImpl {
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Creature your opponents control"); private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Creatures your opponents control");
static { static {
filter.add(new ControllerPredicate(TargetController.OPPONENT)); filter.add(new ControllerPredicate(TargetController.OPPONENT));
@ -76,7 +76,7 @@ public class BrutalHordechief extends CardImpl {
this.addAbility(new BrutalHordechiefTriggeredAbility()); this.addAbility(new BrutalHordechiefTriggeredAbility());
// {3}{R/W}{R/W}: Creatures your opponents control block this turn if able, and you choose how those creatures block. // {3}{R/W}{R/W}: Creatures your opponents control block this turn if able, and you choose how those creatures block.
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BlocksIfAbleAllEffect(filter), new ManaCostsImpl("{3}{R/W}{R/W}")); Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new BlocksIfAbleAllEffect(filter, Duration.EndOfTurn), new ManaCostsImpl("{3}{R/W}{R/W}"));
ability.addEffect(new BrutalHordechiefReplacementEffect()); ability.addEffect(new BrutalHordechiefReplacementEffect());
this.addAbility(ability); this.addAbility(ability);
} }
@ -157,8 +157,7 @@ class BrutalHordechiefReplacementEffect extends ReplacementEffectImpl {
@Override @Override
public boolean applies(GameEvent event, Ability source, Game game) { public boolean applies(GameEvent event, Ability source, Game game) {
Player controller = game.getPlayer(source.getControllerId()); return event.getPlayerId().equals(source.getControllerId());
return controller != null && controller.hasOpponent(event.getPlayerId(), game);
} }
@Override @Override