diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-05-12 10:43:54 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-05-12 10:43:54 +0200 |
commit | 6396cf3e46b4c45788247968b5774cd4976b71ad (patch) | |
tree | 71432d4f2a8ba45d0f5ab58f515b1e5b82d2c2dd /src | |
parent | c98438ae8f5f576c8539baa3e9f27ad2f65532ba (diff) |
Core/CreatureAI: Properly initialize attack distance in CasterAI
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/AI/CoreAI/CombatAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/CoreAI/CombatAI.cpp b/src/server/game/AI/CoreAI/CombatAI.cpp index 5cc6423698d..e3f2e7b9cfe 100755 --- a/src/server/game/AI/CoreAI/CombatAI.cpp +++ b/src/server/game/AI/CoreAI/CombatAI.cpp @@ -123,7 +123,7 @@ void CasterAI::InitializeAI() { CombatAI::InitializeAI(); - float m_attackDist = 30.0f; + m_attackDist = 30.0f; for (SpellVct::iterator itr = spells.begin(); itr != spells.end(); ++itr) if (AISpellInfo[*itr].condition == AICOND_COMBAT && m_attackDist > GetAISpellInfo(*itr)->maxRange) m_attackDist = GetAISpellInfo(*itr)->maxRange; |