mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Fixed bug of Melek, Izzet Paragon allowing to cast sorceries that shouldn't be castable with Melek.
This commit is contained in:
parent
579951ee36
commit
df569d01e0
2 changed files with 7 additions and 5 deletions
|
@ -97,7 +97,7 @@ public class BloodBaronOfVizkopa extends CardImpl<BloodBaronOfVizkopa> {
|
|||
}
|
||||
|
||||
class BloodBaronOfVizkopaEffect extends ContinuousEffectImpl<BloodBaronOfVizkopaEffect> {
|
||||
|
||||
|
||||
public BloodBaronOfVizkopaEffect() {
|
||||
super(Duration.WhileOnBattlefield, Outcome.BoostCreature);
|
||||
staticText = "As long as you have 30 or more life and an opponent has 10 or less life, {this} gets +6/+6 and has flying";
|
||||
|
@ -129,6 +129,7 @@ class BloodBaronOfVizkopaEffect extends ContinuousEffectImpl<BloodBaronOfVizkopa
|
|||
creature.addAbility(FlyingAbility.getInstance(), game);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -157,6 +158,7 @@ class BloodBaronOfVizkopaEffect extends ContinuousEffectImpl<BloodBaronOfVizkopa
|
|||
@Override
|
||||
public boolean hasLayer(Layer layer) {
|
||||
return (layer.equals(Layer.AbilityAddingRemovingEffects_6) || layer.equals(layer.PTChangingEffects_7));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -117,8 +117,8 @@ class MelekIzzetParagonTriggeredAbility extends TriggeredAbilityImpl<MelekIzzetP
|
|||
Spell spell = game.getStack().getSpell(event.getTargetId());
|
||||
if (spell != null
|
||||
&& spell.getControllerId().equals(super.getControllerId())
|
||||
&& spell.getCardType().contains(CardType.INSTANT)
|
||||
|| spell.getCardType().contains(CardType.SORCERY)) {
|
||||
&& (spell.getCardType().contains(CardType.INSTANT)
|
||||
|| spell.getCardType().contains(CardType.SORCERY))) {
|
||||
for (Effect effect : this.getEffects()) {
|
||||
effect.setTargetPointer(new FixedTarget(event.getTargetId()));
|
||||
}
|
||||
|
@ -132,4 +132,4 @@ class MelekIzzetParagonTriggeredAbility extends TriggeredAbilityImpl<MelekIzzetP
|
|||
public String getRule() {
|
||||
return "Whenever you cast an instant or sorcery from your library, copy it. You may choose new targets for the copy.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue