mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-04 18:32:25 +00:00
Update aggro.cpp
This commit is contained in:
parent
f2b68e6783
commit
15dde4778a
@ -237,6 +237,11 @@ bool Mob::CheckWillAggro(Mob *mob) {
|
|||||||
if (!mob->CastToClient()->ClientFinishedLoading() || mob->CastToClient()->IsHoveringForRespawn() || mob->CastToClient()->bZoning)
|
if (!mob->CastToClient()->ClientFinishedLoading() || mob->CastToClient()->IsHoveringForRespawn() || mob->CastToClient()->bZoning)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We don't want to aggro clients outside of water if we're water only.
|
||||||
|
if (mob->IsClient() && mob->CastToClient()->GetLastRegion() != RegionTypeWater && IsUnderwaterOnly()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pets shouldn't scan for aggro
|
* Pets shouldn't scan for aggro
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user