From 88bd618496b955da4505a8c106dd135235d02542 Mon Sep 17 00:00:00 2001 From: Kurausukun Date: Sat, 26 Jun 2021 04:04:22 -0400 Subject: port UBFIXes from emerald --- src/battle_ai_script_commands.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/battle_ai_script_commands.c') diff --git a/src/battle_ai_script_commands.c b/src/battle_ai_script_commands.c index 952c1487f..a500d591b 100644 --- a/src/battle_ai_script_commands.c +++ b/src/battle_ai_script_commands.c @@ -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); } -- cgit v1.2.3