mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Units: make SetHover virtual
This commit is contained in:
@@ -25560,14 +25560,6 @@ bool Player::IsInWhisperWhiteList(uint64 guid)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Player::SetHover(bool enable)
|
||||
{
|
||||
if (!Unit::SetHover(enable))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void Player::SendMovementSetCanFly(bool apply)
|
||||
{
|
||||
WorldPacket data(apply ? SMSG_MOVE_SET_CAN_FLY : SMSG_MOVE_UNSET_CAN_FLY, 12);
|
||||
|
||||
@@ -2279,8 +2279,6 @@ class Player : public Unit, public GridObject<Player>
|
||||
m_mover->m_movedPlayer = this;
|
||||
}
|
||||
|
||||
bool SetHover(bool enable);
|
||||
|
||||
void SetSeer(WorldObject* target) { m_seer = target; }
|
||||
void SetViewpoint(WorldObject* target, bool apply);
|
||||
WorldObject* GetViewpoint() const;
|
||||
|
||||
@@ -1618,7 +1618,7 @@ class Unit : public WorldObject
|
||||
bool IsWalking() const { return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_WALKING);}
|
||||
virtual bool SetWalk(bool enable);
|
||||
virtual bool SetDisableGravity(bool disable, bool packetOnly = false);
|
||||
bool SetHover(bool enable);
|
||||
virtual bool SetHover(bool enable);
|
||||
|
||||
void SetInFront(Unit const* target);
|
||||
void SetFacingTo(float ori);
|
||||
|
||||
Reference in New Issue
Block a user