mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Unbound Flourishing - fixed that it can copy spells without X;
This commit is contained in:
parent
8c4dc55a8f
commit
ee5a6d8d10
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue