mirror of
https://github.com/mangosfour/server.git
synced 2025-12-23 16:37:03 +00:00
[9038] Update highest threat enemy at move to offline list.
It will restored if still highest at move back and fix at least visual bug with GM-mode on still show for GM as highest threat enemy for creature.
This commit is contained in:
parent
15de428242
commit
6adfd75040
2 changed files with 3 additions and 2 deletions
|
|
@ -512,6 +512,7 @@ void ThreatManager::processThreatEvent(ThreatRefStatusChangeEvent* threatRefStat
|
||||||
setCurrentVictim(NULL);
|
setCurrentVictim(NULL);
|
||||||
setDirty(true);
|
setDirty(true);
|
||||||
}
|
}
|
||||||
|
iOwner->SendThreatRemove(hostileReference);
|
||||||
iThreatContainer.remove(hostileReference);
|
iThreatContainer.remove(hostileReference);
|
||||||
iUpdateNeed = true;
|
iUpdateNeed = true;
|
||||||
iThreatOfflineContainer.addReference(hostileReference);
|
iThreatOfflineContainer.addReference(hostileReference);
|
||||||
|
|
@ -531,9 +532,9 @@ void ThreatManager::processThreatEvent(ThreatRefStatusChangeEvent* threatRefStat
|
||||||
setCurrentVictim(NULL);
|
setCurrentVictim(NULL);
|
||||||
setDirty(true);
|
setDirty(true);
|
||||||
}
|
}
|
||||||
iOwner->SendThreatRemove(hostileReference);
|
|
||||||
if(hostileReference->isOnline())
|
if(hostileReference->isOnline())
|
||||||
{
|
{
|
||||||
|
iOwner->SendThreatRemove(hostileReference);
|
||||||
iThreatContainer.remove(hostileReference);
|
iThreatContainer.remove(hostileReference);
|
||||||
iUpdateNeed = true;
|
iUpdateNeed = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9037"
|
#define REVISION_NR "9038"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue