mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Somewhat better structuring of the fix from the previous commit.
This commit is contained in:
@@ -100,10 +100,10 @@ public class CharmEffect extends SpellAbilityEffect {
|
|||||||
for (AbilitySub sub : chosen) {
|
for (AbilitySub sub : chosen) {
|
||||||
// Clone the chosen, just in case the some subAb gets chosen multiple times
|
// Clone the chosen, just in case the some subAb gets chosen multiple times
|
||||||
AbilitySub clone = (AbilitySub)sub.getCopy();
|
AbilitySub clone = (AbilitySub)sub.getCopy();
|
||||||
clone.setTargets(sub.getTargets());
|
|
||||||
|
|
||||||
saDeepest.setSubAbility(clone);
|
saDeepest.setSubAbility(clone);
|
||||||
clone.setActivatingPlayer(saDeepest.getActivatingPlayer());
|
clone.setActivatingPlayer(saDeepest.getActivatingPlayer());
|
||||||
|
clone.setTargets(sub.getTargets()); // do not forget what was targeted by the subability
|
||||||
clone.setParent(saDeepest);
|
clone.setParent(saDeepest);
|
||||||
|
|
||||||
// to chain the next one (but make sure it goes all the way at the end of the SA chain)
|
// to chain the next one (but make sure it goes all the way at the end of the SA chain)
|
||||||
|
|||||||
Reference in New Issue
Block a user