From c363261d00719ea3092cf658421780064699b44c Mon Sep 17 00:00:00 2001 From: Derision Date: Sat, 9 Mar 2013 13:18:36 +0000 Subject: [PATCH] Fix from Zaela_S to stop mobs aggroing on dead players when using RespawnFromHover. --- zone/aggro.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zone/aggro.cpp b/zone/aggro.cpp index 828434049..8fb102b92 100644 --- a/zone/aggro.cpp +++ b/zone/aggro.cpp @@ -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 //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()) - return false; + if (mob->IsClient()) { + if (!mob->CastToClient()->ClientFinishedLoading() || mob->CastToClient()->IsHoveringForRespawn()) + return false; + } Mob *ownr = mob->GetOwner(); if(ownr && ownr->IsClient() && !ownr->CastToClient()->ClientFinishedLoading())