mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-30 05:53:57 -05:00
Adds missing check for Egg in Illusion
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user