--[[ a.abolishin Паук. ]] function bot_Spider_r(A, C, R) local bot = PERS(my.persPtr) if bot_SpiderBaf2 == nil then bot_SpiderBaf2 = {} end if bot_SpiderBaf2[bot.id] == nil then bot_SpiderBaf2[bot.id] = 0 end if (my.status ~= FS_PS_ACTIVE) or (not my.oppPtr) then -- можем ли ходить? return end if bot_SpiderBaf2[bot.id] >= C[1] then -- если подготовились к масс дамагу - дамажим aux.useEffect({artId = A[5]}) aux.useEffect({artId = A[4]}, my.oppPtr) bot_SpiderBaf2[bot.id] = 0 end if aux.randRoll(R[3]) then -- а не подготовиться ли к массовому дамагу? aux.useEffect({artId = A[3]}) bot_SpiderBaf2[bot.id] = bot_SpiderBaf2[bot.id] + 1 end if aux.randRoll(R[1]) then aux.useEffect({artId = A[1]}) -- применяем A[1] с вероятностью R[1] end if aux.randRoll(R[2]) then aux.useEffect({artId = A[2]}, my.oppPtr) -- применяем A[2] с вероятностью R[2] else ATTACK(math.random(2)) end end -- botID = 849 function bot_Spider() local A = {4562, 4571, 4564, 4565, 4654} local C = {3} local R = {0.1, 0.15, 0.06} return bot_Spider_r(A, C, R) end function bot_Spider_t() local A = {4562, 4571, 4564, 4565, 4636} local C = {3} local R = {0.1, 0.15, 0.06} return bot_Spider_r(A, C, R) end