Skip to content

Commit

Permalink
fix #360
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Dec 13, 2022
1 parent cbeca18 commit e84ff12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/client/creature.cpp
Expand Up @@ -467,6 +467,11 @@ void Creature::onDisappear()

self->m_oldPosition = {};
self->m_disappearEvent = nullptr;

if (g_game.getAttackingCreature() == self)
g_game.cancelAttack();
else if (g_game.getFollowingCreature() == self)
g_game.cancelFollow();
});
}

Expand Down

0 comments on commit e84ff12

Please sign in to comment.