mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* 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:
parent
a137ec1633
commit
993fe37108
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue