mirror of
https://github.com/correl/mage.git
synced 2025-04-02 03:18:09 -09:00
Implemented Blind Fury
This commit is contained in:
parent
38c25eedb7
commit
bf159edb78
2 changed files with 84 additions and 0 deletions
Mage.Sets/src/mage
83
Mage.Sets/src/mage/cards/b/BlindFury.java
Normal file
83
Mage.Sets/src/mage/cards/b/BlindFury.java
Normal file
|
@ -0,0 +1,83 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.ReplacementEffectImpl;
|
||||
import mage.abilities.effects.common.continuous.LoseAbilityAllEffect;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.DamageCreatureEvent;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BlindFury extends CardImpl {
|
||||
|
||||
public BlindFury(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{R}{R}");
|
||||
|
||||
// All creatures lose trample until end of turn. If a creature would deal combat damage to a creature this turn, it deals double that damage to that creature instead.
|
||||
this.getSpellAbility().addEffect(new LoseAbilityAllEffect(
|
||||
TrampleAbility.getInstance(), Duration.EndOfTurn,
|
||||
StaticFilters.FILTER_PERMANENT_CREATURES
|
||||
).setText("All creatures lose trample until end of turn."));
|
||||
this.getSpellAbility().addEffect(new FurnaceOfRathEffect());
|
||||
}
|
||||
|
||||
private BlindFury(final BlindFury card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BlindFury copy() {
|
||||
return new BlindFury(this);
|
||||
}
|
||||
}
|
||||
|
||||
class FurnaceOfRathEffect extends ReplacementEffectImpl {
|
||||
|
||||
FurnaceOfRathEffect() {
|
||||
super(Duration.EndOfTurn, Outcome.Damage);
|
||||
staticText = "If a creature would deal combat damage to a creature this turn, " +
|
||||
"it deals double that damage to that creature instead";
|
||||
}
|
||||
|
||||
private FurnaceOfRathEffect(final FurnaceOfRathEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FurnaceOfRathEffect copy() {
|
||||
return new FurnaceOfRathEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checksEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.DAMAGE_CREATURE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
Permanent permanent = game.getPermanent(event.getSourceId());
|
||||
return permanent != null
|
||||
&& permanent.isCreature()
|
||||
&& ((DamageCreatureEvent) event).isCombatDamage();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
event.setAmount(CardUtil.addWithOverflowCheck(event.getAmount(), event.getAmount()));
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -49,6 +49,7 @@ public final class Mirage extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Benthic Djinn", 257, Rarity.RARE, mage.cards.b.BenthicDjinn.class));
|
||||
cards.add(new SetCardInfo("Binding Agony", 106, Rarity.COMMON, mage.cards.b.BindingAgony.class));
|
||||
cards.add(new SetCardInfo("Blighted Shaman", 107, Rarity.UNCOMMON, mage.cards.b.BlightedShaman.class));
|
||||
cards.add(new SetCardInfo("Blind Fury", 158, Rarity.UNCOMMON, mage.cards.b.BlindFury.class));
|
||||
cards.add(new SetCardInfo("Blinding Light", 5, Rarity.UNCOMMON, mage.cards.b.BlindingLight.class));
|
||||
cards.add(new SetCardInfo("Blistering Barrier", 159, Rarity.COMMON, mage.cards.b.BlisteringBarrier.class));
|
||||
cards.add(new SetCardInfo("Bone Harvest", 108, Rarity.COMMON, mage.cards.b.BoneHarvest.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue