po-devs/pokemon-online — pull request #992 by Withoutatrace (2014-02-12 23:02:07+00:00)
Title: Fixes Mechanics Error with TSpikes and Sub

Fixes it where in Gen 4 and 6, when Baton Passed a sub, you do not become poisoned when TSpikes are already laid down, where in Gen 5 you will become poisoned.