mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-27 22:16:11 +00:00
refactor(Core/Defines): Rename custom named creature family enum. (#24570)
This commit is contained in:
@@ -1145,8 +1145,8 @@ void ObjectMgr::CheckCreatureTemplate(CreatureTemplate const* cInfo)
|
||||
const_cast<CreatureTemplate*>(cInfo)->type = CREATURE_TYPE_HUMANOID;
|
||||
}
|
||||
|
||||
// must exist or used hidden but used in data horse case
|
||||
if (cInfo->family && !sCreatureFamilyStore.LookupEntry(cInfo->family) && cInfo->family != CREATURE_FAMILY_HORSE_CUSTOM)
|
||||
// Must exist in DBC or use hidden miscellaneous family
|
||||
if (cInfo->family && !sCreatureFamilyStore.LookupEntry(cInfo->family) && cInfo->family != CREATURE_FAMILY_NOT_SPECIFIED)
|
||||
{
|
||||
LOG_ERROR("sql.sql", "Creature (Entry: {}) has invalid creature family ({}) in `family`.", cInfo->Entry, cInfo->family);
|
||||
const_cast<CreatureTemplate*>(cInfo)->family = 0;
|
||||
|
||||
@@ -2657,7 +2657,7 @@ enum CreatureFamily
|
||||
CREATURE_FAMILY_CARRION_BIRD = 7,
|
||||
CREATURE_FAMILY_CRAB = 8,
|
||||
CREATURE_FAMILY_GORILLA = 9,
|
||||
CREATURE_FAMILY_HORSE_CUSTOM = 10, // not exist in DBC but used for horse like beasts in DB
|
||||
CREATURE_FAMILY_NOT_SPECIFIED = 10, // Doesn't exist in DBC, but used by many creatures
|
||||
CREATURE_FAMILY_RAPTOR = 11,
|
||||
CREATURE_FAMILY_TALLSTRIDER = 12,
|
||||
CREATURE_FAMILY_FELHUNTER = 15,
|
||||
|
||||
Reference in New Issue
Block a user