Wow that was so quick thank you!
Although, it was that magician should not have activated at all I think maybe that's the problem? Like when hoopa attacked it had it's choice scarf - magician only activates when attacking without an item. So when weavile pickpocketed hoopa's scarf, magician...