mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Brutal Hordechief - Fixed that damage was dealt instead of lief loss and creatures were forced to attack instead of block.
This commit is contained in:
parent
495b93a679
commit
4f8ec31ef5
2 changed files with 5 additions and 4 deletions
|
@ -36,6 +36,7 @@ import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
import mage.abilities.effects.ReplacementEffectImpl;
|
import mage.abilities.effects.ReplacementEffectImpl;
|
||||||
import mage.abilities.effects.common.DamageTargetEffect;
|
import mage.abilities.effects.common.DamageTargetEffect;
|
||||||
import mage.abilities.effects.common.GainLifeEffect;
|
import mage.abilities.effects.common.GainLifeEffect;
|
||||||
|
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
||||||
import mage.abilities.effects.common.combat.BlocksIfAbleAllEffect;
|
import mage.abilities.effects.common.combat.BlocksIfAbleAllEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
@ -94,7 +95,7 @@ public class BrutalHordechief extends CardImpl {
|
||||||
class BrutalHordechiefTriggeredAbility extends TriggeredAbilityImpl {
|
class BrutalHordechiefTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
public BrutalHordechiefTriggeredAbility() {
|
public BrutalHordechiefTriggeredAbility() {
|
||||||
super(Zone.BATTLEFIELD, new DamageTargetEffect(1));
|
super(Zone.BATTLEFIELD, new LoseLifeTargetEffect(1));
|
||||||
this.addEffect(new GainLifeEffect(1));
|
this.addEffect(new GainLifeEffect(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ public class BlocksIfAbleAllEffect extends RequirementEffect {
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlocksIfAbleAllEffect(FilterCreaturePermanent filter, Duration duration) {
|
public BlocksIfAbleAllEffect(FilterCreaturePermanent filter, Duration duration) {
|
||||||
super(Duration.WhileOnBattlefield);
|
super(duration);
|
||||||
staticText = new StringBuilder(filter.getMessage())
|
staticText = new StringBuilder(filter.getMessage())
|
||||||
.append(" block ")
|
.append(" block ")
|
||||||
.append(duration.equals(Duration.EndOfTurn) ? "this":"each")
|
.append(duration.equals(Duration.EndOfTurn) ? "this":"each")
|
||||||
|
@ -72,12 +72,12 @@ public class BlocksIfAbleAllEffect extends RequirementEffect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mustAttack(Game game) {
|
public boolean mustAttack(Game game) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean mustBlock(Game game) {
|
public boolean mustBlock(Game game) {
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue