aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-12-03 20:27:15 -0300
committerDoctorKraft <DoctorKraft@users.noreply.github.com>2018-03-12 11:17:56 +0100
commit301a0e8681d40af080504a3215a39a1f8a76facc (patch)
tree3b4a4aa7f5d8061fcfec66461e22f3f37e657fda
parent4e08ab8f69c10d2c34aaaf2ea160461ea6e02c33 (diff)
Core/SpellMgr: added a startup error for possibly unhandled procs
(cherry picked from commit 3d5c1b83b15cfc9f73888eb525c64323266c1fd4)
-rw-r--r--src/server/game/Spells/SpellMgr.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 279e8c5e546..e2f6433d414 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -1533,7 +1533,18 @@ void SpellMgr::LoadSpellProcs()
}
if (!procSpellTypeMask)
+ {
+ for (SpellEffectInfo const* effectInfo : spellInfo->GetEffectsForDifficulty(DIFFICULTY_NONE))
+ {
+ if (effectInfo && effectInfo->IsAura())
+ {
+ TC_LOG_ERROR("sql.sql", "Spell Id %u has DBC ProcFlags %u, but it's of non-proc aura type, it probably needs an entry in `spell_proc` table to be handled correctly.", spellInfo->Id, spellInfo->ProcFlags);
+ break;
+ }
+ }
+
continue;
+ }
SpellProcEntry procEntry;
procEntry.SchoolMask = 0;