From 50c73d433ce54b5c119058ee295d0ffaa5ac95bc Mon Sep 17 00:00:00 2001 From: QAston Date: Thu, 6 Aug 2009 23:10:36 +0200 Subject: *Add SpellCasterAI as a framework for casting only units (like ebon gargoyle or mirror image. --HG-- branch : trunk --- src/game/UnitAI.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/UnitAI.cpp') 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; } } -- cgit v1.2.3