From 1f471aa9f929f063588278265ceb4b79f4968830 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 24 Feb 2014 00:22:02 -0500 Subject: [PATCH] Remove dist in Mob casting AI for roots --- zone/MobAI.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zone/MobAI.cpp b/zone/MobAI.cpp index 38addf695..26f8fb2e1 100644 --- a/zone/MobAI.cpp +++ b/zone/MobAI.cpp @@ -127,7 +127,6 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint16 iSpellTypes) { case SpellType_Root: { if ( !tar->IsRooted() - && dist2 >= 900 && MakeRandomInt(0, 99) < 50 && tar->DontRootMeBefore() < Timer::GetCurrentTime() && tar->CanBuffStack(AIspells[i].spellid, GetLevel(), true) >= 0 @@ -167,7 +166,7 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint16 iSpellTypes) { } case SpellType_InCombatBuff: { - if(MakeRandomInt(0,100) < 50) + if(MakeRandomInt(0, 99) < 50) { AIDoSpellCast(i, tar, mana_cost); return true; @@ -201,7 +200,7 @@ bool NPC::AICastSpell(Mob* tar, uint8 iChance, uint16 iSpellTypes) { break; } case SpellType_Dispel: { - if(MakeRandomInt(0, 100) < 15) + if(MakeRandomInt(0, 99) < 15) { if(!checked_los) { if(!CheckLosFN(tar))