Still can't get it to work. To confirm, you're able to accomplish this?
1) Colombia moves 100% to Peru
2) Peru moves 100% to Colombia
3) Colombia moves 100% to Amazonas
4) Peru moves 100% to Amazonas
#1 and #2 already work fine, which is still an improvement on current LMA (#2 would fail).
But #3 and #4 both still fail. I'm printing out result.isSuccess, result.isNullified and result.ActualArmies.NumArmies and see that when orders #3 starts that it's false/true/0 and then after the modification of ActualArmies switches to false/false/57 which shows that the move is no longer nullified and that army count has been corrected, but it's still success=false and thus never gets executed.
Also 1 other oddity is that order #4 never executes. In fact, I can see that the code exits function Server_AdvanceTurn_Order after order #3 and halts, never processing order #4. It's likely the false/false/57 combination trying to get the WZ engine to exit an unsuccessful but non-nullified order causing it to crash and abort processing any further orders.