From 33a8a398fe1aa24af60c6dcd30ced3e4c3b0df39 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 24 Feb 2014 01:24:27 -0500 Subject: [PATCH] Add SpellType_Root to EngagedCast check --- zone/MobAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/MobAI.cpp b/zone/MobAI.cpp index e3fd0b171..a9c5085fd 100644 --- a/zone/MobAI.cpp +++ b/zone/MobAI.cpp @@ -1881,7 +1881,7 @@ bool NPC::AI_EngagedCastCheck() { // try casting a heal on nearby if (!entity_list.AICheckCloseBeneficialSpells(this, 25, MobAISpellRange, SpellType_Heal)) { //nobody to heal, try some detrimental spells. - if(!AICastSpell(GetTarget(), 20, SpellType_Nuke | SpellType_Lifetap | SpellType_DOT | SpellType_Dispel | SpellType_Mez | SpellType_Slow | SpellType_Debuff | SpellType_Charm)) { + if(!AICastSpell(GetTarget(), 20, SpellType_Nuke | SpellType_Lifetap | SpellType_DOT | SpellType_Dispel | SpellType_Mez | SpellType_Slow | SpellType_Debuff | SpellType_Charm | SpellType_Root)) { //no spell to cast, try again soon. AIautocastspell_timer->Start(RandomTimer(500, 1000), false); }