mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-14 14:08:19 -05:00
trigger ground effects on rock climb dismount
This commit is contained in:
@@ -4140,6 +4140,7 @@ static bool8 RockClimb_WaitStopRockClimb(struct Task *task, struct ObjectEvent *
|
||||
ScriptContext2_Disable();
|
||||
DestroySprite(&gSprites[objectEvent->fieldEffectSpriteId]);
|
||||
FieldEffectActiveListRemove(FLDEFF_USE_ROCK_CLIMB);
|
||||
objectEvent->triggerGroundEffectsOnMove = TRUE; // e.g. if dismount on grass
|
||||
DestroyTask(FindTaskIdByFunc(Task_UseRockClimb));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user