mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[8035] Return found guardian in search function. Update caller.
This commit is contained in:
parent
cb8cffc11e
commit
0b4c37f751
4 changed files with 7 additions and 7 deletions
|
|
@ -7584,7 +7584,7 @@ void Unit::RemoveGuardians()
|
|||
}
|
||||
}
|
||||
|
||||
bool Unit::HasGuardianWithEntry(uint32 entry)
|
||||
Pet* Unit::FindGuardianWithEntry(uint32 entry)
|
||||
{
|
||||
// pet guid middle part is entry (and creature also)
|
||||
// and in guardian list must be guardians with same entry _always_
|
||||
|
|
@ -7592,10 +7592,10 @@ bool Unit::HasGuardianWithEntry(uint32 entry)
|
|||
{
|
||||
if(Pet* pet = ObjectAccessor::GetPet(*itr))
|
||||
if (pet->GetEntry() == entry)
|
||||
return true;
|
||||
return pet;
|
||||
}
|
||||
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void Unit::UnsummonAllTotems()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue