mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Razia, Boros Archangel - Fixed wrong casting costs.
This commit is contained in:
parent
c62c21119f
commit
a223b81218
2 changed files with 7 additions and 4 deletions
|
@ -63,12 +63,15 @@ public class ShivsEmbrace extends CardImpl<ShivsEmbrace> {
|
|||
this.color.setRed(true);
|
||||
this.subtype.add("Aura");
|
||||
|
||||
// Enchant creature
|
||||
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||
this.getSpellAbility().addTarget(auraTarget);
|
||||
this.getSpellAbility().addEffect(new AttachEffect(Outcome.Detriment));
|
||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||
this.addAbility(ability);
|
||||
// Enchanted creature gets +2/+2 and has flying.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new ShivsEmbraceEffect()));
|
||||
// {R}: Enchanted creature gets +1/+0 until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
|
||||
|
||||
}
|
||||
|
|
|
@ -35,8 +35,8 @@ import mage.abilities.costs.common.TapSourceCost;
|
|||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.PreventionEffectImpl;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
|
@ -55,7 +55,7 @@ import mage.target.common.TargetCreaturePermanent;
|
|||
public class RaziaBorosArchangel extends CardImpl<RaziaBorosArchangel> {
|
||||
|
||||
public RaziaBorosArchangel(UUID ownerId) {
|
||||
super(ownerId, 92, "Razia, Boros Archangel", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{W}");
|
||||
super(ownerId, 92, "Razia, Boros Archangel", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{4}{R}{R}{W}{W}");
|
||||
this.expansionSetCode = "HOP";
|
||||
this.supertype.add("Legendary");
|
||||
this.subtype.add("Angel");
|
||||
|
@ -122,7 +122,7 @@ class RaziaBorosArchangelEffect extends PreventionEffectImpl<RaziaBorosArchangel
|
|||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
GameEvent preventEvent = new GameEvent(GameEvent.EventType.PREVENT_DAMAGE, source.getFirstTarget(), source.getId(), source.getControllerId(), event.getAmount(), false);
|
||||
if (!game.replaceEvent(preventEvent)) {
|
||||
int prevented = 0;
|
||||
int prevented;
|
||||
if (event.getAmount() >= this.amount) {
|
||||
int damage = amount;
|
||||
event.setAmount(event.getAmount() - amount);
|
||||
|
@ -160,4 +160,4 @@ class RaziaBorosArchangelEffect extends PreventionEffectImpl<RaziaBorosArchangel
|
|||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue