*Correctly show spellclick flag for vehicles and creatures with info in spellclick table.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-06-08 23:43:25 -05:00
1 parent 30adb32d53
commit a8dbf8904c
7 files changed
+20 -17

No files matched your search

+3
View File
@@ -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)