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/CreatureAIImpl.h | |
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/CreatureAIImpl.h')
-rw-r--r-- | src/game/CreatureAIImpl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/CreatureAIImpl.h b/src/game/CreatureAIImpl.h index f6653ce40f7..bcedd108d44 100644 --- a/src/game/CreatureAIImpl.h +++ b/src/game/CreatureAIImpl.h @@ -246,10 +246,13 @@ enum AICondition struct AISpellInfoType { - AISpellInfoType() : target(AITARGET_SELF), condition(AICOND_COMBAT), cooldown(AI_DEFAULT_COOLDOWN) {} + AISpellInfoType() : target(AITARGET_SELF), condition(AICOND_COMBAT) + , cooldown(AI_DEFAULT_COOLDOWN), realCooldown(0), maxRange(0.0f){} AITarget target; AICondition condition; uint32 cooldown; + uint32 realCooldown; + float maxRange; }; TRINITY_DLL_SPEC AISpellInfoType * GetAISpellInfo(uint32 i); |