mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
- Fixed Djinn Illuminatus #4552
This commit is contained in:
parent
79939c5ee7
commit
fe3a023c36
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,8 @@ class DjinnIlluminatusGainReplicateEffect extends ContinuousEffectImpl {
|
||||||
if ((stackObject instanceof Spell)
|
if ((stackObject instanceof Spell)
|
||||||
&& !stackObject.isCopy()
|
&& !stackObject.isCopy()
|
||||||
&& stackObject.getControllerId().equals(source.getControllerId())
|
&& stackObject.getControllerId().equals(source.getControllerId())
|
||||||
&& djinn.getControllerId().equals(source.getControllerId())) { // verify that the controller of the djinn cast that spell
|
&& djinn.getControllerId().equals(source.getControllerId()) // verify that the controller of the djinn cast that spell
|
||||||
|
&& !stackObject.getManaCost().isEmpty()) { //handle cases like Ancestral Vision
|
||||||
Spell spell = (Spell) stackObject;
|
Spell spell = (Spell) stackObject;
|
||||||
if (filter.match(stackObject, game)) {
|
if (filter.match(stackObject, game)) {
|
||||||
ReplicateAbility replicateAbility = replicateAbilities.computeIfAbsent(spell.getId(), k -> new ReplicateAbility(spell.getCard(), spell.getSpellAbility().getManaCosts().getText()));
|
ReplicateAbility replicateAbility = replicateAbilities.computeIfAbsent(spell.getId(), k -> new ReplicateAbility(spell.getCard(), spell.getSpellAbility().getManaCosts().getText()));
|
||||||
|
|
Loading…
Reference in a new issue