function TEST_Threat_AI_EraseThreat(LuaAI) --Copy of the INIT function -- Initialize AI data data = { }; data["threatListDamage"] = 0 -- List of damage done by units data["UnitList"] = 0 --List of units on our threat list data["StartAttack"] = false; --Used to start the attack once data["TableCounter"] = 1; --The number of attackers (due to lua indexing starts at 1 not 0) data["WasAttacked"] = false; data["update"] = false; data["candobebuffspell"] = 0 data["candobuffspell"] = 0 data["casting"] = 0 LuaAI:SetData(data) LuaAI:SetUpdateInterval(0) end