From fef7cdb51b2297bba3fd64f2b80385ca2c3d8a84 Mon Sep 17 00:00:00 2001 From: QAston Date: Fri, 12 Jun 2009 15:32:33 +0200 Subject: *Fix the bug that Felguard was not able to learn Demonic Frenzy. --HG-- branch : trunk --- src/game/DBCStores.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/game/DBCStores.cpp b/src/game/DBCStores.cpp index 639489b1173..4b11346f4b2 100644 --- a/src/game/DBCStores.cpp +++ b/src/game/DBCStores.cpp @@ -23,6 +23,7 @@ #include "Log.h" #include "ProgressBar.h" #include "SharedDefines.h" +#include "SpellMgr.h" #include "DBCfmt.h" @@ -339,7 +340,7 @@ void LoadDBCStores(const std::string& dataPath) SpellEntry const* spellInfo = sSpellStore.LookupEntry(skillLine->spellId); - if(spellInfo && (spellInfo->Attributes & 0x1D0) == 0x1D0) + if(spellInfo && IsPassiveSpell(spellInfo->Id)) { for (uint32 i = 1; i < sCreatureFamilyStore.GetNumRows(); ++i) { -- cgit v1.2.3