mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
Fix from Zaela_S to stop mobs aggroing on dead players when using RespawnFromHover.
This commit is contained in:
parent
a2500ff814
commit
c363261d00
@ -249,8 +249,10 @@ bool Mob::CheckWillAggro(Mob *mob) {
|
|||||||
|
|
||||||
//sometimes if a client has some lag while zoning into a dangerous place while either invis or a GM
|
//sometimes if a client has some lag while zoning into a dangerous place while either invis or a GM
|
||||||
//they will aggro mobs even though it's supposed to be impossible, to lets make sure we've finished connecting
|
//they will aggro mobs even though it's supposed to be impossible, to lets make sure we've finished connecting
|
||||||
if(mob->IsClient() && !mob->CastToClient()->ClientFinishedLoading())
|
if (mob->IsClient()) {
|
||||||
return false;
|
if (!mob->CastToClient()->ClientFinishedLoading() || mob->CastToClient()->IsHoveringForRespawn())
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Mob *ownr = mob->GetOwner();
|
Mob *ownr = mob->GetOwner();
|
||||||
if(ownr && ownr->IsClient() && !ownr->CastToClient()->ClientFinishedLoading())
|
if(ownr && ownr->IsClient() && !ownr->CastToClient()->ClientFinishedLoading())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user