crediting redew
Merge pull request #329 from smogon/eb9d055d28641c1b94acfdf955749b30

crediting redew