po-devs/pokemon-online — pull request #1058 by Fuzzysqurl (2014-03-08 02:57:25+00:00)
Title: Store Choice Data for Embargo/MagRoom/Klutz

Things to note (Waiting on mechanics tests for the two things above before I "fix" them.):
Speed ties/Scarves and cancelling Magic Room early causes Choice memory to be overwritten,
Multi-Turn moves starting right as Magic Room ends will overwrite the Choice memory

Everything else is storing and retrieving choice memory properly (Klutz, Embargo, and Magic Room), which is a vast improvement over what we had!