From b5e52172fe9ff30559c181dad30e693bd52e02fb Mon Sep 17 00:00:00 2001 From: killerwife Date: Tue, 24 Sep 2024 01:08:19 +0200 Subject: [PATCH] Vehicle: Name flag and clear target --- src/game/Entities/Vehicle.cpp | 2 ++ src/game/Globals/SharedDefines.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/Entities/Vehicle.cpp b/src/game/Entities/Vehicle.cpp index 354424dd4e7..aba4075b7c1 100644 --- a/src/game/Entities/Vehicle.cpp +++ b/src/game/Entities/Vehicle.cpp @@ -337,6 +337,8 @@ void VehicleInfo::Board(Unit* passenger, uint8 seat) data << m_owner->GetPackGUID(); pPlayer->GetSession()->SendPacket(data); + pPlayer->SetTarget(nullptr); + pPlayer->SetImmobilizedState(true); } else if (passenger->GetTypeId() == TYPEID_UNIT) diff --git a/src/game/Globals/SharedDefines.h b/src/game/Globals/SharedDefines.h index 1402cae091d..e3e3c6f9f67 100644 --- a/src/game/Globals/SharedDefines.h +++ b/src/game/Globals/SharedDefines.h @@ -1337,7 +1337,7 @@ enum CreatureTypeFlags CREATURE_TYPEFLAGS_EXOTIC = 0x00010000, // Can be tamed by hunter as exotic pet CREATURE_TYPEFLAGS_UNK18 = 0x00020000, // related to CreatureDisplayInfo and scaling in some way CREATURE_TYPEFLAGS_SIEGE_WEAPON = 0x00040000, // Related to vehicle/siege weapons - CREATURE_TYPEFLAGS_UNK20 = 0x00080000, // may be has something to do with missiles + CREATURE_TYPEFLAGS_COLLIDE_WITH_MISSILES = 0x00080000, // CREATURE_TYPEFLAGS_UNK21 = 0x00100000, // no idea, but it used by client, may be related to rendering CREATURE_TYPEFLAGS_UNK22 = 0x00200000, // may be has something to do with animation (disable animation?) CREATURE_TYPEFLAGS_UNK23 = 0x00400000, // this one probably controls some creature visual