It was merely the redistribution of PGE which was illegal: the tool's license forbids it from being distributed by anyone other than the author, and so it being bundled with the patch violated that (and would have been grounds for legal action to be taken against The PokéCommunity as it was hosting it). The patch itself is fine, it's just the inclusion of PGE which is illegal.