mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 20:51:29 +00:00
Make the random addition to time_cancast actually useful
It was in ms so adding 0-4 ms doesn't really do much
This commit is contained in:
parent
1f471aa9f9
commit
6b94e08404
@ -94,7 +94,7 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint16 iSpellTypes) {
|
|||||||
dist2 <= spells[AIspells[i].spellid].range*spells[AIspells[i].spellid].range
|
dist2 <= spells[AIspells[i].spellid].range*spells[AIspells[i].spellid].range
|
||||||
)
|
)
|
||||||
&& (mana_cost <= GetMana() || GetMana() == GetMaxMana())
|
&& (mana_cost <= GetMana() || GetMana() == GetMaxMana())
|
||||||
&& (AIspells[i].time_cancast+(MakeRandomInt(0, 4))) <= Timer::GetCurrentTime() //break up the spelling casting over a period of time.
|
&& (AIspells[i].time_cancast + (MakeRandomInt(0, 4) * 1000)) <= Timer::GetCurrentTime() //break up the spelling casting over a period of time.
|
||||||
) {
|
) {
|
||||||
|
|
||||||
#if MobAI_DEBUG_Spells >= 21
|
#if MobAI_DEBUG_Spells >= 21
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user