mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Merge branch 'master' into 'master'
Remove Optional$ True when precasting spells in effect from a script (e.g. Puzzle Mode). See merge request core-developers/forge!6170
This commit is contained in:
@@ -935,6 +935,11 @@ public abstract class GameState {
|
|||||||
svarValue += " | ValidTgts$ Card";
|
svarValue += " | ValidTgts$ Card";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We don't want to ask for Optional, since the effect is being precast as already active
|
||||||
|
if (svarValue.contains("| Optional$")) {
|
||||||
|
svarValue = TextUtil.fastReplace(svarValue, "| Optional$", "| RemovedOptional$");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sa = AbilityFactory.getAbility(svarValue, c);
|
sa = AbilityFactory.getAbility(svarValue, c);
|
||||||
|
|||||||
Reference in New Issue
Block a user