--[[ a.abolishin Маунт Носорог. ]] function bot_RhinoMount_r(A, C) local bot = PERS(my.persPtr) if not bot_RhinoMountState then bot_RhinoMountState = {} end if not bot_RhinoMountState[bot.id] then bot_RhinoMountState[bot.id] = {} -- инициализируем кол-во 3их бафов bot_RhinoMountState[bot.id].baf3 = C[2] -- ищем хозяина local activator_id = lookupParam("Pers", "activator_id", bot.id) or 0 local myTeam = aux.getPersList(my.teamNum) if myTeam then for _, persPtr in pairs(myTeam) do if PERS_ID(persPtr) == activator_id then bot_RhinoMountState[bot.id].activatorPtr = persPtr break end end end end if (my.status ~= FS_PS_ACTIVE) or (not my.oppPtr) then -- можем ли ходить? return end -- баф 3 - аое урон с травилкой local hpC = bot.hp/bot.hpMax if hpC < (bot_RhinoMountState[bot.id].baf3 * C[1]) then local target = my.oppPtr if bot_RhinoMountState[bot.id].activatorPtr then target = OPPONENT(bot_RhinoMountState[bot.id].activatorPtr) or my.oppPtr end aux.useEffect({artId = A[5]}, target) -- АоЕ травилка aux.useEffect({artId = A[4]}, target) -- АоЕ урон bot_RhinoMountState[bot.id].baf3 = bot_RhinoMountState[bot.id].baf3 - 1 return end -- баф 1 - сброс комбо, стан и маг удар if aux.randRoll(C[3]) then aux.useEffect({artId = A[2]}, my.oppPtr) -- сброс комбо aux.useEffect({artId = A[3]}) -- стан aux.useEffect({artId = A[1]}, my.oppPtr) -- магический урон else ATTACK(math.random(3)) end end -- botID = 871 function bot_RhinoMount() -- маг урон, сброс комбо, стан, аое урон, аое травилка, усиление local A = {4614, 4620, 4622, 4616, 4621, 4615} -- шаг жизни для аое урона с травилкой, кол-во аое'х за бой, -- вероятность первого бафа (A[1], A[2], A[3]), мин кол-во репы для реп.абилок local C = {0.3, 3, 0.1, 0} bot_RhinoMount_r(A, C) end -- botId = 1224 function bot_RhinoMount13() -- маг урон, сброс комбо, стан, аое урон, аое травилка, усиление local A = {9954, 4620, 10045, 10046, 10047, 10048} -- шаг жизни для аое урона с травилкой, кол-во аое'х за бой, -- вероятность первого бафа (A[1], A[2], A[3]), мин кол-во репы для реп.абилок local C = {0.3, 3, 0.1, 0} bot_RhinoMount_r(A, C) end function bot_RhinoMount_t() -- маг урон, сброс комбо, стан, аое урон, аое травилка, усиление local A = {4614, 4620, 4622, 4616, 4621, 4615} -- шаг жизни для аое урона с травилкой, кол-во аое'х за бой, -- вероятность первого бафа (A[1], A[2], A[3]), мин кол-во репы для реп.абилок local C = {0.3, 3, 0.1, 0} bot_RhinoMount_r(A, C) end