port UBFIXes from emerald

This commit is contained in:
Kurausukun
2021-06-26 04:04:22 -04:00
parent 8116790c08
commit 88bd618496
8 changed files with 65 additions and 7 deletions
+5
View File
@@ -1362,7 +1362,12 @@ static void Cmd_if_status_not_in_party(void)
// everytime the status is found, the AI's logic jumps further and further past its intended destination. this results in a broken AI macro and is probably why it is unused.
if (species != SPECIES_NONE && species != SPECIES_EGG && hp != 0 && status == statusToCompareTo)
{
sAIScriptPtr += 10; // doesnt return?
#ifdef UBFIX
return;
#endif
}
}
sAIScriptPtr = T1_READ_PTR(sAIScriptPtr + 6);
}