Core/Players: Defined all avg item level slots
Port From (https://github.com/TrinityCore/TrinityCore/commit/3f85fa7470789dbaedac5f3d74d00e1095e24ad1)
This commit is contained in:
@@ -1921,7 +1921,11 @@ namespace Game.Entities
|
||||
Global.CharacterCacheStorage.UpdateCharacterLevel(ToPlayer().GetGUID(), (byte)lvl);
|
||||
}
|
||||
}
|
||||
|
||||
public uint GetLevel() { return m_unitData.Level; }
|
||||
|
||||
public byte GetEffectiveLevel() { return (byte)(m_unitData.EffectiveLevel != 0 ? m_unitData.EffectiveLevel : m_unitData.Level); }
|
||||
|
||||
public override uint GetLevelForTarget(WorldObject target) { return GetLevel(); }
|
||||
|
||||
public Race GetRace() { return (Race)(byte)m_unitData.Race; }
|
||||
|
||||
Reference in New Issue
Block a user