Merge pull request #1667 from AsparagusEduardo/fix_IllusionEgg

Adds missing check for Egg in Illusion
This commit is contained in:
ghoulslash 2021-09-22 09:01:31 -06:00 committed by GitHub
commit fb17176a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8746,6 +8746,7 @@ bool32 SetIllusionMon(struct Pokemon *mon, u32 battlerId)
id = i;
if (GetMonData(&party[id], MON_DATA_SANITY_HAS_SPECIES)
&& GetMonData(&party[id], MON_DATA_HP)
&& !GetMonData(&party[id], MON_DATA_IS_EGG)
&& &party[id] != mon
&& &party[id] != partnerMon)
{