mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 12:24:22 +08:00
Merge c8db39e9e82246f988dcc8007f11ff1c3a21547b into 5bef92d5eaca3e2ecc317f9d599312bc23eb71aa
This commit is contained in:
commit
3ca5f6f131
@ -1106,6 +1106,8 @@ public:
|
||||
|
||||
void Update(uint32 time) override;
|
||||
|
||||
void Heartbeat() override;
|
||||
|
||||
PlayerFlags GetPlayerFlags() const { return PlayerFlags(GetUInt32Value(PLAYER_FLAGS)); }
|
||||
bool HasPlayerFlag(PlayerFlags flags) const { return HasFlag(PLAYER_FLAGS, flags) != 0; }
|
||||
void SetPlayerFlag(PlayerFlags flags) { SetFlag(PLAYER_FLAGS, flags); }
|
||||
|
||||
@ -384,9 +384,6 @@ void Player::Update(uint32 p_time)
|
||||
}
|
||||
}
|
||||
|
||||
// group update
|
||||
SendUpdateToOutOfRangeGroupMembers();
|
||||
|
||||
Pet* pet = GetPet();
|
||||
if (pet && !pet->IsWithinDistInMap(this, GetMap()->GetVisibilityRange()) &&
|
||||
!pet->isPossessed())
|
||||
@ -426,6 +423,14 @@ void Player::Update(uint32 p_time)
|
||||
}
|
||||
}
|
||||
|
||||
void Player::Heartbeat()
|
||||
{
|
||||
Unit::Heartbeat();
|
||||
|
||||
// Group update
|
||||
SendUpdateToOutOfRangeGroupMembers();
|
||||
}
|
||||
|
||||
void Player::UpdateMirrorTimers()
|
||||
{
|
||||
// Desync flags for update on next HandleDrowning
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user