aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
diff options
context:
space:
mode:
authorTeleqraph <nyrdeveloper@gmail.com>2023-12-28 19:11:54 +0100
committerfunjoker <funjoker109@gmail.com>2024-01-09 12:17:51 +0100
commit7021ee27d79253b443b658c5b01da114e0dddaf9 (patch)
treef9ec163b1206fce1f9a8ff43e0d75734d3b1b7d6 /src/server/game/Globals/ObjectMgr.cpp
parent0b82cc22d32e9cd49fff7900448d17cd82874696 (diff)
Core/Creatures: Refactor CreatureEliteType (#29525)
* Turn into enum class with official names (cherry picked from commit bfbda8dcce8d19dda0ee3d8f96d176901902e102)
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index a0b0131d53b..725c993c021 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -424,7 +424,7 @@ void ObjectMgr::LoadCreatureTemplate(Field* fields)
creatureTemplate.speed_walk = fields[12].GetFloat();
creatureTemplate.speed_run = fields[13].GetFloat();
creatureTemplate.scale = fields[14].GetFloat();
- creatureTemplate.rank = uint32(fields[15].GetUInt8());
+ creatureTemplate.Classification = CreatureClassifications(fields[15].GetUInt8());
creatureTemplate.dmgschool = uint32(fields[16].GetInt8());
creatureTemplate.BaseAttackTime = fields[17].GetUInt32();
creatureTemplate.RangeAttackTime = fields[18].GetUInt32();
@@ -971,7 +971,7 @@ void ObjectMgr::LoadCreatureTemplateDifficulty()
CreatureStaticFlags6(fields[22].GetUInt32()), CreatureStaticFlags7(fields[23].GetUInt32()), CreatureStaticFlags8(fields[24].GetUInt32()));
// TODO: Check if this still applies
- creatureDifficulty.DamageModifier *= Creature::_GetDamageMod(itr->second.rank);
+ creatureDifficulty.DamageModifier *= Creature::GetDamageMod(itr->second.Classification);
if (creatureDifficulty.MinLevel == 0 || creatureDifficulty.MaxLevel == 0)
{