Core/Creatures
* Refactored setting movement flags into separate method * Falling creatures are no longer treated as flying for movement flag setting purposes
This commit is contained in:
1 parent
e21b94c25c
commit
88bbff2236
5 files changed
+41
-71
No files matched your search
@@ -17019,6 +17019,11 @@ void Unit::BuildMovementPacket(ByteBuffer *data) const
|
||||
*data << (float)m_movementInfo.splineElevation;
|
||||
}
|
||||
|
||||
bool Unit::IsFalling() const
|
||||
{
|
||||
return m_movementInfo.HasMovementFlag(MOVEMENTFLAG_FALLING | MOVEMENTFLAG_FALLING_FAR) || movespline->isFalling();
|
||||
}
|
||||
|
||||
void Unit::SetCanFly(bool apply)
|
||||
{
|
||||
if (apply)
|
||||
|
||||
Reference in new issue
Block a user