aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2019-12-15 19:59:39 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-19 01:44:53 +0100
commit73e7719dbf924aa2f7f2e9a7d7ec3ca04595f988 (patch)
treefdfcff8a57b59164761b355f550d387b8fef5324
parent865954767f3f60a3c8584803829c918e75e26130 (diff)
Core/Creature: Log an error for Creatures spawned with temporary auras
The errors still need to be addressed. Close #23225 (cherry picked from commit 54f94567649c78d146f4087cc874e4d0cbcff28b)
-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 01125c54a61..7a1049c6837 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -697,6 +697,12 @@ void ObjectMgr::LoadCreatureTemplateAddons()
continue;
}
+ if (AdditionalSpellInfo->GetDuration() > 0)
+ {
+ TC_LOG_ERROR("sql.sql", "Creature (Entry: %u) has temporary aura (spell %u) in `auras` field in `creature_template_addon`.", entry, spellId);
+ continue;
+ }
+
creatureAddon.auras[i++] = spellId;
}
@@ -1232,6 +1238,12 @@ void ObjectMgr::LoadCreatureAddons()
continue;
}
+ if (AdditionalSpellInfo->GetDuration() > 0)
+ {
+ TC_LOG_ERROR("sql.sql", "Creature (GUID: " UI64FMTD ") has temporary aura (spell %u) in `auras` field in `creature_addon`.", guid, spellId);
+ continue;
+ }
+
creatureAddon.auras[i++] = spellId;
}