mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Fix NPC swarm pets despawning on owner death
Fix NPC swarm pets IsAttackAllowed logic
This commit is contained in:
+3
-12
@@ -123,21 +123,12 @@ void NPC::SpellProcess()
|
||||
{
|
||||
Mob::SpellProcess();
|
||||
|
||||
if(GetSwarmInfo()){
|
||||
Mob *swp_o = GetSwarmInfo()->GetOwner();
|
||||
if(!swp_o)
|
||||
{
|
||||
if (GetSwarmInfo()) {
|
||||
if (GetSwarmInfo()->duration->Check(false))
|
||||
Depop();
|
||||
}
|
||||
|
||||
if(GetSwarmInfo()->duration->Check(false))
|
||||
{
|
||||
Depop();
|
||||
}
|
||||
|
||||
Mob *targMob = entity_list.GetMob(GetSwarmInfo()->target);
|
||||
if(GetSwarmInfo()->target != 0)
|
||||
{
|
||||
if (GetSwarmInfo()->target != 0) {
|
||||
if(!targMob || (targMob && targMob->IsCorpse()))
|
||||
Depop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user