feat(Core/Scripting): Implement OnLoadSpellCustomAttr global hook (#10469)

This commit is contained in:
Skjalf
2022-01-31 18:03:42 -03:00
committed by GitHub
parent 0377b71e16
commit 4c5aceedbd
3 changed files with 15 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
#include "SpellAuraDefines.h"
#include "SpellAuras.h"
#include "SpellInfo.h"
#include "ScriptMgr.h"
#include "World.h"
bool IsPrimaryProfessionSkill(uint32 skill)
@@ -3403,6 +3404,8 @@ void SpellMgr::LoadSpellCustomAttr()
}
}
spellInfo->_InitializeExplicitTargetMask();
sScriptMgr->OnLoadSpellCustomAttr(spellInfo);
}
// Xinef: addition for binary spells, ommit spells triggering other spells