diff options
| author | QAston <none@none> | 2009-08-06 23:10:36 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-08-06 23:10:36 +0200 |
| commit | 50c73d433ce54b5c119058ee295d0ffaa5ac95bc (patch) | |
| tree | 28338ea9d0f522e0bbc32b011c5068e573e0a56b /src/game/UnitAI.cpp | |
| parent | 91885a77903666d9c14856972e2f2dded5dea3f3 (diff) | |
*Add SpellCasterAI as a framework for casting only units (like ebon gargoyle or mirror image.
--HG--
branch : trunk
Diffstat (limited to 'src/game/UnitAI.cpp')
| -rw-r--r-- | src/game/UnitAI.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/UnitAI.cpp b/src/game/UnitAI.cpp index 9118fc075b6..a41ad894097 100644 --- a/src/game/UnitAI.cpp +++ b/src/game/UnitAI.cpp @@ -325,6 +325,10 @@ void UnitAI::FillAISpellInfo() } } } + AIInfo->realCooldown = spellInfo->RecoveryTime + spellInfo->StartRecoveryTime; + SpellRangeEntry const* srange = sSpellRangeStore.LookupEntry(spellInfo->rangeIndex); + if (srange) + AIInfo->maxRange = srange->maxRangeHostile * 3 / 4; } } |
