mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
feat(Core/Creature): Log temporary auras on creatures (#9670)
* cherry-pick commit (54f9456764)
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
This commit is contained in:
@@ -761,6 +761,13 @@ void ObjectMgr::LoadCreatureTemplateAddons()
|
||||
LOG_ERROR("sql.sql", "Creature (Entry: %u) has wrong spell %u defined in `auras` field in `creature_template_addon`.", entry, uint32(atol(*itr)));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (AdditionalSpellInfo->GetDuration() > 0)
|
||||
{
|
||||
LOG_DEBUG/*ERROR*/("sql.sql", "Creature (Entry: %u) has temporary aura (spell %u) in `auras` field in `creature_template_addon`.", entry, uint32(atol(*itr)));
|
||||
continue;
|
||||
}
|
||||
|
||||
creatureAddon.auras[i++] = uint32(atol(*itr));
|
||||
}
|
||||
|
||||
@@ -1191,6 +1198,13 @@ void ObjectMgr::LoadCreatureAddons()
|
||||
LOG_ERROR("sql.sql", "Creature (GUID: %u) has wrong spell %u defined in `auras` field in `creature_addon`.", guid, uint32(atol(*itr)));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (AdditionalSpellInfo->GetDuration() > 0)
|
||||
{
|
||||
LOG_DEBUG/*ERROR*/("sql.sql", "Creature (Entry: %u) has temporary aura (spell %u) in `auras` field in `creature_template_addon`.", guid, uint32(atol(*itr)));
|
||||
continue;
|
||||
}
|
||||
|
||||
creatureAddon.auras[i++] = uint32(atol(*itr));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user