--[[ a.abolishin Раскруицу. ]] -- Поведение Раскруицу. function bot_Raskruicu_r(A, C) local bot = PERS(my.persPtr) -- cчиталка для призыва. if bot_Raskruicu_Summon == nil then bot_Raskruicu_Summon = {} end if bot_Raskruicu_Summon[bot.id] == nil then bot_Raskruicu_Summon[bot.id] = 2 end -- считаем кол-во дохлых сгустков... local myTeam = aux.getPersList(my.teamNum) local deadClots = 0 if myTeam then for _, persPtr in pairs(myTeam) do local pers = PERS(persPtr) if (pers.artId == C[2]) and (pers.status == FS_PS_DEAD) then deadClots = deadClots + 1 end end end -- ...если их больше или равно С[3] if (deadClots >= C[3]) and myTeam and my.oppPtr and (aux.useEffect({artId = A[7]}, my.oppPtr) == 0) then for _, persPtr in pairs(myTeam) do local pers = PERS(persPtr) if (pers.artId == C[2]) and (pers.status ~= FS_PS_DEAD) then aux.useEffect({artId = A[1]}, persPtr) -- валим сгустки end end aux.useEffect({artId = A[2]}) -- восстановление hp end -- можем ли ходить? if my.status ~= FS_PS_ACTIVE or not my.oppPtr then return end local hpC = bot.hp/bot.hpMax local opp = PERS(my.oppPtr) -- есть похищенная энергия? if (#aux.activeEffects(my.persPtr, {artId = A[3]}) > 0) and (opp.artId == 0) then aux.useEffect({artId = A[8]}) aux.useEffect({artId = A[5]}, my.oppPtr) return end -- станим дракона в конце боя --[[if hpC < C[5] then local oppTeam = aux.getPersList(aux.oppTeamNum(), true) if oppTeam then for _, persPtr in pairs(oppTeam) do local pers = PERS(persPtr) if aux.inTable(pers.artId, C[6]) and (#aux.activeEffects(persPtr, {artId = A[9]}) < 1) then aux.useEffect({artId = A[6]}) aux.useEffect({artId = A[9]}, persPtr) return end end end end]] -- "похищаем" энергию if (hpC < (bot_Raskruicu_Summon[bot.id] * C[4])) and (opp.artId == 0) then bot_Raskruicu_Summon[bot.id] = bot_Raskruicu_Summon[bot.id] - 1 aux.useEffect({artId = A[3]}) ATTACK(2) return end -- меньше половины хп - лечимся за счет других if hpC < C[1] then if myTeam then for _, persPtr in pairs(myTeam) do local pers = PERS(persPtr) if (pers.artId == C[2]) and (pers.status ~= FS_PS_DEAD) then aux.useEffect({artId = A[1]}, persPtr) -- "аццкой дамаг" aux.useEffect({artId = A[2]}) -- восстановление hp break end end end end -- стандартная атака ATTACK(aux.getRandVal({1, 3})) end -- botId = 952 (бантичный) function bot_Raskruicu() -- instant kill, restore hp, похитить энергию, 0, дот от похищенной энергии, стан, точечный аое удар по противнику, сброс "похищения", атака произвольного противника local A = {5119, 5128, 5132, 0, 5134, 5130, 5129, 5133, 5131} local C = {0.5, 956, 3, 0.4, 0.1, {953, 954}} bot_Raskruicu_r(A, C) end function bot_Raskruicu_t() -- instant kill, restore hp, похитить энергию, 0, дот от похищенной энергии, стан, точечный аое удар по противнику, сброс "похищения", атака произвольного противника local A = {4989, 4990, 4996, 0, 4998, 4993, 4992, 4997, 4994} local C = {0.5, 876, 3, 0.4, 0.1, {874}} bot_Raskruicu_r(A, C) end