mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[12685] Add some safety to rare case of target-selection for unreachable
target Thanks to Atari for reporting and researching this problem
This commit is contained in:
parent
c6ae586f4a
commit
49bcd5a4ad
2 changed files with 3 additions and 2 deletions
|
|
@ -9389,7 +9389,8 @@ bool Unit::SelectHostileTarget()
|
|||
m_HostileRefManager.deleteReference(target);
|
||||
m_ThreatManager.modifyThreatPercent(target, -101);
|
||||
|
||||
_removeAttacker(target);
|
||||
// remove target from current attacker, do not exit combat settings
|
||||
AttackStop(true);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue