*Fix build.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-10 16:31:43 -05:00
parent dcf41256dd
commit 55d52e22a8
4 changed files with 26 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ void CreatureAI::OnCharmed(bool apply)
me->IsAIEnabled = false;
}
AISpellInfoType *AISpellInfo;
AISpellInfoType * CreatureAI::AISpellInfo;
void CreatureAI::DoZoneInCombat(Creature* creature)
{
@@ -257,6 +257,24 @@ void CreatureAI::SelectTargetList(std::list<Unit*> &targetList, uint32 num, Sele
}
}
void CreatureAI::FillAISpellInfo()
{
AISpellInfo = new AISpellInfoType[GetSpellStore()->GetNumRows()];
const SpellEntry * spellInfo;
for(uint32 i = 0; i < GetSpellStore()->GetNumRows(); ++i)
{
spellInfo = GetSpellStore()->LookupEntry(i);
if (!spellInfo)
continue;
for(uint32 j = 0; j < 3; ++j)
{
}
}
}
/*void CreatureAI::AttackedBy( Unit* attacker )
{
if(!m_creature->getVictim())