mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
[SHM] Fix Conspire not working with modal spells
This commit is contained in:
parent
33ac7d7da8
commit
129d900401
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ public class ConspireAbility extends StaticAbility implements OptionalAdditional
|
|||
+ conspireCost.getText(false) + " ?", ability, game)) {
|
||||
return;
|
||||
}
|
||||
ability.getEffects().setValue("ConspireActivation" + conspireId + addedById, true);
|
||||
ability.getAllEffects().setValue("ConspireActivation" + conspireId + addedById, true);
|
||||
for (Iterator<Cost> it = ((Costs<Cost>) conspireCost).iterator(); it.hasNext(); ) {
|
||||
Cost cost = (Cost) it.next();
|
||||
if (cost instanceof ManaCostsImpl) {
|
||||
|
@ -193,7 +193,7 @@ class ConspireTriggeredAbility extends CastSourceTriggeredAbility {
|
|||
return spell != null
|
||||
&& spell
|
||||
.getSpellAbility()
|
||||
.getEffects()
|
||||
.getAllEffects()
|
||||
.stream()
|
||||
.map(effect -> effect.getValue("ConspireActivation" + conspireId + addedById))
|
||||
.anyMatch(Objects::nonNull);
|
||||
|
|
Loading…
Reference in a new issue