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

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-08 23:43:25 -05:00
parent 30adb32d53
commit a8dbf8904c
7 changed files with 20 additions and 17 deletions
+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)