Hanmac's Refactoring Thread

in this thread i want to post and collect the things i am doing refactoring within forge.
i want to make an extra thread for that to keep the bug threads free from it and to see your opinions about my changes before i do them.
First Topic:
"Splice (onto) <Arcane>"
Now:
Refactored:
Missing:
i want to make an extra thread for that to keep the bug threads free from it and to see your opinions about my changes before i do them.
First Topic:
"Splice (onto) <Arcane>"
Now:
- currently it does show a massive list there you try to select which of the many combinations you want.
- also there is currently no way to select the order, but the rules explicit says that you choose an order (even if it might not have a big effect from the spells)
Refactored:
- i did remove it from GameActionUtil and make a new function in AbilityUtils#addSpliceEffects(SpellAbility) which does return the cloned and modified SpellAbility object. (cloned to prevent it from changing the main object)
- inside there is a call getController().chooseCardsForSplice where the player can select the cards to splice similar to the Effects of a Charm Effect. (Gui().many(0,cards.size()))
Missing:
- The AI currently does not know what do to with that. should that be done in PlayerControllerAi or should that go to AiController?
- my Plan is that the AI does try to find the best combination (irrelevant order) of Splice Cards it has the mana to pay for.