mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-12 22:40:51 -05:00
Fixes follower NPC not changing state with player after warp (#7009)
This commit is contained in:
parent
cc8694d26d
commit
79abc885e7
|
|
@ -1284,7 +1284,15 @@ void FollowerNPC_WarpSetEnd(void)
|
|||
}
|
||||
|
||||
if (gPlayerAvatar.flags & PLAYER_AVATAR_FLAG_ON_FOOT)
|
||||
{
|
||||
SetFollowerNPCSprite(FOLLOWER_NPC_SPRITE_INDEX_NORMAL);
|
||||
SetFollowerNPCData(FNPC_DATA_SURF_BLOB, FNPC_SURF_BLOB_NONE);
|
||||
}
|
||||
else if (gPlayerAvatar.flags & PLAYER_AVATAR_FLAG_SURFING)
|
||||
{
|
||||
SetFollowerNPCSprite(FOLLOWER_NPC_SPRITE_INDEX_SURF);
|
||||
SetFollowerNPCData(FNPC_DATA_SURF_BLOB, FNPC_SURF_BLOB_RECREATE);
|
||||
}
|
||||
|
||||
follower->facingDirection = player->facingDirection;
|
||||
follower->movementDirection = player->movementDirection;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user