diff options
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
-rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 2de1a9f63de..aaa2369f6d7 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -3232,6 +3232,14 @@ void SpellMgr::LoadSpellInfoCustomAttributes() } + // add custom attribute to liquid auras + for (LiquidTypeEntry const* liquid : sLiquidTypeStore) + { + if (liquid->SpellID) + for (SpellInfo const& spellInfo : _GetSpellInfo(liquid->SpellID)) + const_cast<SpellInfo&>(spellInfo).AttributesCu |= SPELL_ATTR0_CU_AURA_CANNOT_BE_SAVED; + } + TC_LOG_INFO("server.loading", ">> Loaded SpellInfo custom attributes in %u ms", GetMSTimeDiffToNow(oldMSTime)); } |