mirror of
https://github.com/correl/mage.git
synced 2024-12-28 03:00:10 +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
|
@ -129,6 +129,7 @@ class BloodBaronOfVizkopaEffect extends ContinuousEffectImpl<BloodBaronOfVizkopa
|
||||||
creature.addAbility(FlyingAbility.getInstance(), game);
|
creature.addAbility(FlyingAbility.getInstance(), game);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -157,6 +158,7 @@ class BloodBaronOfVizkopaEffect extends ContinuousEffectImpl<BloodBaronOfVizkopa
|
||||||
@Override
|
@Override
|
||||||
public boolean hasLayer(Layer layer) {
|
public boolean hasLayer(Layer layer) {
|
||||||
return (layer.equals(Layer.AbilityAddingRemovingEffects_6) || layer.equals(layer.PTChangingEffects_7));
|
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());
|
Spell spell = game.getStack().getSpell(event.getTargetId());
|
||||||
if (spell != null
|
if (spell != null
|
||||||
&& spell.getControllerId().equals(super.getControllerId())
|
&& spell.getControllerId().equals(super.getControllerId())
|
||||||
&& spell.getCardType().contains(CardType.INSTANT)
|
&& (spell.getCardType().contains(CardType.INSTANT)
|
||||||
|| spell.getCardType().contains(CardType.SORCERY)) {
|
|| spell.getCardType().contains(CardType.SORCERY))) {
|
||||||
for (Effect effect : this.getEffects()) {
|
for (Effect effect : this.getEffects()) {
|
||||||
effect.setTargetPointer(new FixedTarget(event.getTargetId()));
|
effect.setTargetPointer(new FixedTarget(event.getTargetId()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue