diff options
author | megamage <none@none> | 2009-06-08 23:43:25 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-08 23:43:25 -0500 |
commit | a8dbf8904c3004ad2135ff3f8fcc43490abc4e46 (patch) | |
tree | 11d2f1f3ae05d664444965a4d88bac84a3708eb9 /src/game/ObjectMgr.cpp | |
parent | 30adb32d53ec268f71819edbc17fa09a7de5884c (diff) |
*Correctly show spellclick flag for vehicles and creatures with info in spellclick table.
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectMgr.cpp')
-rw-r--r-- | src/game/ObjectMgr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp index 350bf5d3a15..38ba9c33a6c 100644 --- a/src/game/ObjectMgr.cpp +++ b/src/game/ObjectMgr.cpp @@ -6467,6 +6467,9 @@ void ObjectMgr::LoadNPCSpellClickSpells() continue; } + if(!(cInfo->npcflag & UNIT_NPC_FLAG_SPELLCLICK)) + const_cast<CreatureInfo*>(cInfo)->npcflag |= UNIT_NPC_FLAG_SPELLCLICK; + uint32 spellid = fields[1].GetUInt32(); SpellEntry const *spellinfo = sSpellStore.LookupEntry(spellid); if (!spellinfo) |