* Unbound Flourishing - fixed that it can copy spells without X;

This commit is contained in:
Oleg Agafonov 2019-06-22 05:53:25 +04:00
parent 8c4dc55a8f
commit ee5a6d8d10

View file

@ -129,10 +129,12 @@ class UnboundFlourishingCopyAbility extends TriggeredAbilityImpl {
if (event.getType() == GameEvent.EventType.SPELL_CAST) { if (event.getType() == GameEvent.EventType.SPELL_CAST) {
Spell spell = game.getStack().getSpell(event.getTargetId()); Spell spell = game.getStack().getSpell(event.getTargetId());
if (spell != null && spell.isInstantOrSorcery()) { if (spell != null && spell.isInstantOrSorcery()) {
if (spell.getSpellAbility().getManaCostsToPay().containsX()) {
game.getState().setValue(this.getSourceId() + UnboundFlourishing.needPrefix, spell); game.getState().setValue(this.getSourceId() + UnboundFlourishing.needPrefix, spell);
return true; return true;
} }
} }
}
} }
return false; return false;