mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7780] Fixed Player::HasGuardianWithEntry()
Pets not contain in GUID entry but pet number so we need check GetEntry() == entry Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
da04a946e7
commit
e8d8b1a888
2 changed files with 6 additions and 3 deletions
|
|
@ -16194,8 +16194,11 @@ bool Player::HasGuardianWithEntry(uint32 entry)
|
|||
// pet guid middle part is entry (and creature also)
|
||||
// and in guardian list must be guardians with same entry _always_
|
||||
for(GuardianPetList::const_iterator itr = m_guardianPets.begin(); itr != m_guardianPets.end(); ++itr)
|
||||
if(GUID_ENPART(*itr)==entry)
|
||||
{
|
||||
if(Pet* pet = ObjectAccessor::GetPet(*itr))
|
||||
if (Pet->GetEntry() == entry)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7779"
|
||||
#define REVISION_NR "7780"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue