Core/Unit: enable setting and retrieval of a temporary race for players

This commit is contained in:
mik1893
2016-08-14 08:22:17 +01:00
committed by Yehonal
parent fb2ac1a6a7
commit f4382e25c0
2 changed files with 32 additions and 4 deletions

View File

@@ -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;