rh-hideout / pokeemerald-expansion

Feature branche for the pokeemerald decompilation. See the wiki for more info.
347 stars 1.03k forks source link

Remove Duplicate ai code from battle_ai_util.c #4883

Closed AlexOn1ine closed 3 months ago

AlexOn1ine commented 3 months ago

Removed those four functions because they exist in battle_util.c. We haven't kept those in battle_ai_util.c. We had to update the battle_ai_util.c functions which we didn't do.

AI_CanSleep
AI_CanBePoisoned
AI_CanBeParalyzed
AI_CanBeBurned

I couldn't remove AI_CanBeConfused because the func in battle_util.c can't be used.

Also some very simple AI tests.