aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellMgr.cpp
diff options
context:
space:
mode:
authorGooyeth <Gooyeth@users.noreply.github.com>2018-04-01 20:56:08 -0600
committerAriel Silva <ariel-@users.noreply.github.com>2018-04-03 00:36:02 -0300
commit8001c5ead1aa27671aea20336c7eb2194b89d8ac (patch)
tree0ff2cbc20dffe94d0d31a9fd767ebbe0a95187f3 /src/server/game/Spells/SpellMgr.cpp
parent1ea75f413ce21f586654c80ba77ecf8b927d7a3b (diff)
Adding atrribute custom SPELL_ATTR0_CU_LIQUID_AURA
Diffstat (limited to 'src/server/game/Spells/SpellMgr.cpp')
-rw-r--r--src/server/game/Spells/SpellMgr.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 9361194120a..01567385bd3 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -2946,6 +2946,12 @@ void SpellMgr::LoadSpellInfoCustomAttributes()
}
}
+ // 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));
}