Zarel/Pokemon-Showdown — pull request #1231 by Pikachuun (2014-09-26 18:09:13+00:00)
Title: Doom Desire Bug Fix (Issue 567)

Future moves fail to activate if the opponent has Wonder Guard, and
deals damage if it activated beforehand to a Wonder Guard Pokemon that
is not weak to them. This commit fixes both of those issues.

https://github.com/Zarel/Pokemon-Showdown/issues/567
See this link for the original issue.