Adding atrribute custom SPELL_ATTR0_CU_LIQUID_AURA

This commit is contained in:
Aokromes committed 2018-04-06 07:52:42 +02:00
1 parent 4da3cbf3aa
commit 395ad03cd4
3 files changed
+11 -5

No files matched your search

+6
View File
@@ -2809,6 +2809,12 @@ void SpellMgr::LoadSpellInfoCustomAttributes()
spellInfo->_InitializeExplicitTargetMask();
}
// add attribute custom to liquid auras
for (LiquidTypeEntry const* liquid : sLiquidTypeStore)
if (liquid->SpellId)
if (spellInfo = _GetSpellInfo(liquid->SpellId))
spellInfo->AttributesCu |= SPELL_ATTR0_CU_LIQUID_AURA;
TC_LOG_INFO("server.loading", ">> Loaded SpellInfo custom attributes in %u ms", GetMSTimeDiffToNow(oldMSTime));
}