mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-19 01:44:20 +01:00
changed gastro acid check to properly use GetBattlerAbility
This commit is contained in:
parent
785b100693
commit
b269cc6906
@ -10161,8 +10161,7 @@ u16 GetBattleFormChangeTargetSpecies(u8 battlerId, u16 method)
|
||||
// Check if there is a required ability and if the battler's ability does not match it
|
||||
// or is suppressed. If so, revert to the no weather form.
|
||||
if (formChanges[i].param2
|
||||
&& (gBattleMons[battlerId].ability != formChanges[i].param2
|
||||
|| (gStatuses3[gBattlerTarget] & STATUS3_GASTRO_ACID))
|
||||
&& GetBattlerAbility(battlerId) != formChanges[i].param2
|
||||
&& formChanges[i].param1 == B_WEATHER_NONE)
|
||||
{
|
||||
targetSpecies = formChanges[i].targetSpecies;
|
||||
|
Loading…
x
Reference in New Issue
Block a user