mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9287] Prevent weapon skill grow at player's pet hit.
This commit is contained in:
parent
af3aced775
commit
1f1f414d76
4 changed files with 11 additions and 2 deletions
|
|
@ -8480,6 +8480,14 @@ Unit *Unit::GetCharmer() const
|
|||
return NULL;
|
||||
}
|
||||
|
||||
bool Unit::IsCharmerOrOwnerPlayerOrPlayerItself() const
|
||||
{
|
||||
if (GetTypeId()==TYPEID_PLAYER)
|
||||
return true;
|
||||
|
||||
return IS_PLAYER_GUID(GetCharmerOrOwnerGUID());
|
||||
}
|
||||
|
||||
Player* Unit::GetCharmerOrOwnerPlayerOrPlayerItself()
|
||||
{
|
||||
uint64 guid = GetCharmerOrOwnerGUID();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue