mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
@@ -30,9 +30,9 @@ constexpr uint8 MAX_SPELL_VEHICLE = 6;
|
||||
constexpr uint8 MAX_SPELL_POSSESS = 8;
|
||||
constexpr uint8 MAX_SPELL_CONTROL_BAR = 10;
|
||||
|
||||
#define UNIT_ACTION_BUTTON_ACTION(X) (uint32(X) & 0x00FFFFFF)
|
||||
#define UNIT_ACTION_BUTTON_TYPE(X) ((uint32(X) & 0xFF000000) >> 24)
|
||||
#define MAKE_UNIT_ACTION_BUTTON(A, T) (uint32(A) | (uint32(T) << 24))
|
||||
#define UNIT_ACTION_BUTTON_ACTION(X) (uint32(X) & 0x007FFFFF)
|
||||
#define UNIT_ACTION_BUTTON_TYPE(X) ((uint32(X) & 0xFF000000) >> 23)
|
||||
#define MAKE_UNIT_ACTION_BUTTON(A, T) (uint32(A) | (uint32(T) << 23))
|
||||
|
||||
struct UnitActionBarEntry
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user