PaidLists now store if the CostPart source is linked to host

This commit is contained in:
tool4EvEr
2023-03-29 17:33:51 +02:00
parent 99f8cca233
commit 101306e61c
20 changed files with 125 additions and 113 deletions

View File

@@ -172,7 +172,7 @@ public class PlayAi extends SpellAbilityAi {
abCost = new Cost(sa.getParam("PlayCost"), false);
}
spell = (Spell) spell.copyWithDefinedCost(abCost);
spell = (Spell) spell.copyWithManaCostReplaced(spell.getActivatingPlayer(), abCost);
}
if (AiPlayDecision.WillPlay == ((PlayerControllerAi)ai.getController()).getAi().canPlayFromEffectAI(spell, !(isOptional || sa.hasParam("Optional")), true)) {
// Before accepting, see if the spell has a valid number of targets (it should at this point).