AI/SmartScripts: Add SMART_ACTION_DISABLE_EVADE (117).

(cherry picked from commit 14b44af38d)
This commit is contained in:
treeston
2016-08-19 14:53:53 +02:00
committed by joschiwald
parent d0f4588652
commit b18b05ee4a
5 changed files with 31 additions and 1 deletions

View File

@@ -2388,6 +2388,14 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
delete targets;
break;
}
case SMART_ACTION_DISABLE_EVADE:
{
if (!IsSmart())
break;
ENSURE_AI(SmartAI, me->AI())->SetEvadeDisabled(e.action.disableEvade.disable != 0);
break;
}
default:
TC_LOG_ERROR("sql.sql", "SmartScript::ProcessAction: Entry " SI64FMTD " SourceType %u, Event %u, Unhandled Action type %u", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType());
break;