From 6b94e08404b46670fd67874628b5b5551dce5cf8 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 24 Feb 2014 00:27:26 -0500 Subject: [PATCH] Make the random addition to time_cancast actually useful It was in ms so adding 0-4 ms doesn't really do much --- zone/MobAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/MobAI.cpp b/zone/MobAI.cpp index 26f8fb2e1..c6584db5e 100644 --- a/zone/MobAI.cpp +++ b/zone/MobAI.cpp @@ -94,7 +94,7 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint16 iSpellTypes) { dist2 <= spells[AIspells[i].spellid].range*spells[AIspells[i].spellid].range ) && (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