po-devs/pokemon-online — pull request #971 by Withoutatrace (2014-02-08 06:07:49+00:00)
Title: Skill Swap Insomnia Fix

Fixing when a pokemon is asleep and gets Skill Swapped Insomnia, the pokemon receiving Insomnia that is asleep wakes up!
Also added function "OnAbilityAcquire" to where it makes it easier to fix other things in this nature, ie getting swapped immunity to a pokemon currently poisoned!
Fuzzy helped a lot on this one.