feat(Core/Creature): Log temporary auras on creatures (#9670)
* cherry-pick commit (https://github.com/TrinityCore/TrinityCore/commit/54f94567649c78d146f4087cc874e4d0cbcff28b) 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)));
|
LOG_ERROR("sql.sql", "Creature (Entry: %u) has wrong spell %u defined in `auras` field in `creature_template_addon`.", entry, uint32(atol(*itr)));
|
||||||
continue;
|
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));
|
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)));
|
LOG_ERROR("sql.sql", "Creature (GUID: %u) has wrong spell %u defined in `auras` field in `creature_addon`.", guid, uint32(atol(*itr)));
|
||||||
continue;
|
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));
|
creatureAddon.auras[i++] = uint32(atol(*itr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user