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,8 +129,10 @@ 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()) {
|
||||||
game.getState().setValue(this.getSourceId() + UnboundFlourishing.needPrefix, spell);
|
if (spell.getSpellAbility().getManaCostsToPay().containsX()) {
|
||||||
return true;
|
game.getState().setValue(this.getSourceId() + UnboundFlourishing.needPrefix, spell);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue