--[[ a.abolishin Маунт Зорб/Тигр[10] ]] function bot_Mount10_r(A, C) local bot = PERS(my.persPtr) if not bot_Mount10State then bot_Mount10State = {} end if not bot_Mount10State[bot.id] then bot_Mount10State[bot.id] = {} -- ищем хозяина 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_Mount10State[bot.id].activatorPtr = persPtr break end end end end -- усиление брони хозяина if bot_Mount10State[bot.id].activatorPtr then local activator = PERS(bot_Mount10State[bot.id].activatorPtr) local hpC = activator.hp/activator.hpMax if (hpC < C[1]) and (#aux.activeEffects(bot_Mount10State[bot.id].activatorPtr, {artId = A[1]}) < 1) then aux.useEffect({artId = A[1]}, bot_Mount10State[bot.id].activatorPtr) end end if (my.status ~= FS_PS_ACTIVE) or (not my.oppPtr) then -- можем ли ходить? return end -- лечилка, если есть и если надо abil_MountHeal() ATTACK(math.random(3)) end -- botID = 1174 function bot_Zorb10() -- усиление брони local A = {7196} -- % жизни для усиления брони local C = {0.40} bot_Mount10_r(A, C) end -- botID = 1175 function bot_Tiger10() -- усиление брони local A = {7197} -- % жизни для усиления брони local C = {0.40} bot_Mount10_r(A, C) end