mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Use correct check in BuildMovementPacket to determine if creature can fly. Based on [8647] by NoFantasy
--HG-- branch : trunk
This commit is contained in:
@@ -14865,7 +14865,7 @@ void Unit::BuildMovementPacket(ByteBuffer *data) const
|
||||
switch(GetTypeId())
|
||||
{
|
||||
case TYPEID_UNIT:
|
||||
if(isInFlight())
|
||||
if(canFly())
|
||||
const_cast<Unit*>(this)->AddUnitMovementFlag(MOVEMENTFLAG_FORWARD | MOVEMENTFLAG_LEVITATING);
|
||||
break;
|
||||
case TYPEID_PLAYER:
|
||||
|
||||
Reference in New Issue
Block a user