aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-12-15 19:59:39 +0100
committerjackpoz <giacomopoz@gmail.com>2019-12-15 19:59:39 +0100
commit54f94567649c78d146f4087cc874e4d0cbcff28b (patch)
tree076f4880619e8ac83d85f81f2a7af645cf7b01fa /src
parent73348bed8e4b8359c34741d3d2dc37c2cf4197d2 (diff)
Core/Creature: Log an error for Creatures spawned with temporary auras
The errors still need to be addressed. Close #23225
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 944cde633e9..3f45a3788e6 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -762,6 +762,12 @@ void ObjectMgr::LoadCreatureTemplateAddons()
continue;
}
+ if (AdditionalSpellInfo->GetDuration() > 0)
+ {
+ TC_LOG_ERROR("sql.sql", "Creature (Entry: %u) has temporary aura (spell %lu) in `auras` field in `creature_template_addon`.", entry, atoul(*itr));
+ continue;
+ }
+
creatureAddon.auras[i++] = atoul(*itr);
}
@@ -1287,6 +1293,12 @@ void ObjectMgr::LoadCreatureAddons()
continue;
}
+ if (AdditionalSpellInfo->GetDuration() > 0)
+ {
+ TC_LOG_ERROR("sql.sql", "Creature (GUID: %u) has temporary aura (spell %lu) in `auras` field in `creature_addon`.", guid, atoul(*itr));
+ continue;
+ }
+
creatureAddon.auras[i++] = atoul(*itr);
}