Improve auto-hunt navigation, recovery and mounted skill casting

This commit is contained in:
shen
2026-10-01 07:46:44 -07:00
parent 586bae51e4
commit e7f2202a94
14 changed files with 854 additions and 148 deletions
+4 -3
View File
@@ -526,9 +526,8 @@ void CPythonPlayer::NotifyCharacterUpdate(DWORD dwVID)
void CPythonPlayer::NotifyDeadMainCharacter()
{
__ClearAutoAttackTargetActorID();
// PORT: auto hunt stops with the character.
if (AutoHunt_IsEnabled())
__AutoHunt_Stop(AUTO_HUNT_STOP_DEAD);
// PORT: optional auto-hunt recovery uses the normal server restart command.
AutoHunt_OnDeath();
}
void CPythonPlayer::NotifyChangePKMode()
@@ -1704,6 +1703,8 @@ void CPythonPlayer::Clear()
// PORT: leaving the game (logout, character select) ends auto hunt without a stop notice.
m_eAutoHuntState = AUTO_HUNT_OFF;
m_iAutoHuntMountState = 0;
m_vecAutoHuntPath.clear();
m_eAutoHuntStopReason = AUTO_HUNT_STOP_NONE;
m_dwAutoHuntTargetVID = 0;
m_dwAutoHuntItemID = 0;