Skip to content

Commit

Permalink
Vehicle: Name flag and clear target
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Sep 23, 2024
1 parent e06dbff commit b5e5217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/game/Entities/Vehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/game/Globals/SharedDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5e5217

Please sign in to comment.