diff options
Diffstat (limited to 'src/game/CreatureAI.cpp')
-rw-r--r-- | src/game/CreatureAI.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/game/CreatureAI.cpp b/src/game/CreatureAI.cpp index 2390b359731..011ffab22e5 100644 --- a/src/game/CreatureAI.cpp +++ b/src/game/CreatureAI.cpp @@ -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()) |