mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[10391] Restore build at Unix after Unit::GetUnit drop.
This commit is contained in:
parent
9c02f476ec
commit
9d76725a0e
4 changed files with 12 additions and 6 deletions
|
|
@ -5710,6 +5710,11 @@ Pet* Unit::GetPet() const
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Pet* Unit::_GetPet(ObjectGuid guid) const
|
||||||
|
{
|
||||||
|
return GetMap()->GetPet(guid);
|
||||||
|
}
|
||||||
|
|
||||||
Unit* Unit::GetCharm() const
|
Unit* Unit::GetCharm() const
|
||||||
{
|
{
|
||||||
if (uint64 charm_guid = GetCharmGUID())
|
if (uint64 charm_guid = GetCharmGUID())
|
||||||
|
|
|
||||||
|
|
@ -1945,6 +1945,7 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
|
||||||
uint32 GetCombatRatingDamageReduction(CombatRating cr, float rate, float cap, uint32 damage) const;
|
uint32 GetCombatRatingDamageReduction(CombatRating cr, float rate, float cap, uint32 damage) const;
|
||||||
|
|
||||||
Unit* _GetTotem(TotemSlot slot) const; // for templated function without include need
|
Unit* _GetTotem(TotemSlot slot) const; // for templated function without include need
|
||||||
|
Pet* _GetPet(ObjectGuid guid) const; // for templated function without include need
|
||||||
|
|
||||||
uint32 m_state; // Even derived shouldn't modify
|
uint32 m_state; // Even derived shouldn't modify
|
||||||
uint32 m_CombatTimer;
|
uint32 m_CombatTimer;
|
||||||
|
|
@ -1978,7 +1979,7 @@ void Unit::CallForAllControlledUnits(Func const& func, bool withTotems, bool wit
|
||||||
if (withGuardians)
|
if (withGuardians)
|
||||||
{
|
{
|
||||||
for(GuardianPetList::const_iterator itr = m_guardianPets.begin(); itr != m_guardianPets.end(); ++itr)
|
for(GuardianPetList::const_iterator itr = m_guardianPets.begin(); itr != m_guardianPets.end(); ++itr)
|
||||||
if (Pet* guardian = GetMap()->GetPet(*itr))
|
if (Pet* guardian = _GetPet(*itr))
|
||||||
func(guardian);
|
func(guardian);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2005,7 +2006,7 @@ bool Unit::CheckAllControlledUnits(Func const& func, bool withTotems, bool withG
|
||||||
if (withGuardians)
|
if (withGuardians)
|
||||||
{
|
{
|
||||||
for(GuardianPetList::const_iterator itr = m_guardianPets.begin(); itr != m_guardianPets.end(); ++itr)
|
for(GuardianPetList::const_iterator itr = m_guardianPets.begin(); itr != m_guardianPets.end(); ++itr)
|
||||||
if (Pet const* guardian = GetMap()->GetPet(*itr))
|
if (Pet const* guardian = _GetPet(*itr))
|
||||||
if (func(guardian))
|
if (func(guardian))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10390"
|
#define REVISION_NR "10391"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue