- Somewhat better structuring of the fix from the previous commit.

This commit is contained in:
Agetian
2015-11-22 06:02:31 +00:00
parent f94e62459c
commit 1e546f1ec8

View File

@@ -100,10 +100,10 @@ public class CharmEffect extends SpellAbilityEffect {
for (AbilitySub sub : chosen) {
// Clone the chosen, just in case the some subAb gets chosen multiple times
AbilitySub clone = (AbilitySub)sub.getCopy();
clone.setTargets(sub.getTargets());
saDeepest.setSubAbility(clone);
clone.setActivatingPlayer(saDeepest.getActivatingPlayer());
clone.setTargets(sub.getTargets()); // do not forget what was targeted by the subability
clone.setParent(saDeepest);
// to chain the next one (but make sure it goes all the way at the end of the SA chain)