Improve auto-hunt navigation, recovery and mounted skill casting
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user