mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-03 15:57:47 +00:00
Core/Unit: enable setting and retrieval of a temporary race for players
This commit is contained in:
@@ -1458,6 +1458,7 @@ class Unit : public WorldObject
|
||||
uint8 getLevelForTarget(WorldObject const* /*target*/) const { return getLevel(); }
|
||||
void SetLevel(uint8 lvl, bool showLevelChange = true);
|
||||
uint8 getRace(bool original = false) const;
|
||||
void setRace(uint8 race);
|
||||
uint32 getRaceMask() const { return 1 << (getRace(true)-1); }
|
||||
uint8 getClass() const { return GetByteValue(UNIT_FIELD_BYTES_0, 1); }
|
||||
uint32 getClassMask() const { return 1 << (getClass()-1); }
|
||||
@@ -2441,6 +2442,7 @@ class Unit : public WorldObject
|
||||
void _UpdateAutoRepeatSpell();
|
||||
|
||||
uint8 m_realRace;
|
||||
uint8 m_race;
|
||||
|
||||
bool m_AutoRepeatFirstCast;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user