mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12684"
|
||||
#define REVISION_NR "12685"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue