But it doesn't work. The success variable returns false and no movedef is changed. I tried to use both the number moveDefID and string moveDefName as arguments. Anybody knows what I'm doing wrong?Spring.MoveCtrl.SetMoveDef
( number unitID, number moveDefID | string moveDefName ) -> boolean success
There is no lua error or similar in infolog, it just doesn't work.