*Add SpellCasterAI as a framework for casting only units (like ebon gargoyle or mirror image.
--HG-- branch : trunk
This commit is contained in:
1 parent
91885a7790
commit
50c73d433c
8 files changed
+80
-48
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user