mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
*Add SpellCasterAI as a framework for casting only units (like ebon gargoyle or mirror image.
--HG-- branch : trunk
This commit is contained in:
@@ -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