mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 06:21:28 +00:00
Change pet attack to be live like
Classic behavior will be restored as a rule at a later date
This commit is contained in:
parent
3ca8ddbff1
commit
14c9ddf15a
@ -10012,7 +10012,14 @@ void Client::Handle_OP_PetCommands(const EQApplicationPacket *app)
|
||||
}
|
||||
}
|
||||
zone->AddAggroMob();
|
||||
mypet->AddToHateList(target, 1);
|
||||
// classic acts like qattack
|
||||
int hate = 1;
|
||||
if (IsEngaged()) {
|
||||
auto top = hate_list.GetEntWithMostHateOnList(this);
|
||||
if (top)
|
||||
hate += hate_list.GetEntHateAmount(top);
|
||||
}
|
||||
mypet->AddToHateList(target, hate);
|
||||
Message_StringID(MT_PetResponse, PET_ATTACKING, mypet->GetCleanName(), target->GetCleanName());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user