Grab-O-Bot v1
3500
ID:
34
Family ID:
Author:
cedi
Rarity:
unique
Element:
iron
Attack Type:
Decay
Attack Range:
900
Attack CD:
0.4
Damage:
659-659
Abil. Factor:
0.66
Status:
Approved

Description:

When you think it looks very fragile, you're right. But its also a devastating machine.

Latest Upload Comment:

Restored from 1.10
Specials:
Splash attack:
   75 AoE: 100% damage
   100 AoE: 66% damage
   125 AoE: 33% damage
Shock
Slams all creeps in 250 AoE around the target, dealing 1250 spell damage and stunning for 2 seconds.

Level Bonus:
+185 damage
Grapple
Each time the bot attacks there is an 8% it will grab the target, holding it in place for 2.5 seconds. The duration is reduced to 0.9 seconds for champions and bosses.

Level Bonus:
+0.32% chance
Download

Toggle Triggers

Autocast

caster_art: AUTOCAST_cooldown: 15.00 AUTOCAST_numBuffsBeforeIdle: 1 AUTOCAST_isExtended: false AUTOCAST_autocastType: AC_TYPE_OFFENSIVE_UNIT AUTOCAST_manacost: 50 AUTOCAST_range: 900.00 AUTOCAST_buffType: 0 AUTOCAST_targetSelf: true AUTOCAST_targetType: TARGET_TYPE_CREEPS target_art: AUTOCAST_autoRange: 900.00
private function onAutocast takes Tower tower returns nothing
    local Unit U = Event.getTarget()
    local Iterate I = Iterate.overUnitsInRangeOfUnit( tower, TARGET_CREEPS, U, 250.00 )
    call Effect.createSimpleAtUnit("Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl", U).destroy()
    call tower.doSpellDamageAoEUnit(U, 250.00, 1250.00 + 185.00 * I2R(tower.getLevel()), tower.calcSpellCritNoBonus(), 0.5)
    loop
        set U = I.next()
        exitwhen U == 0
        call cb_stun.applyOnlyTimed(tower, U, 2.00)
    endloop
endfunction

Header

    globals
        BuffType BT
    endglobals
    
    function starta takes Buff B returns nothing
        local Lightning li
        local Unit t = B.getBuffedUnit()
        local Unit c = B.getCaster()
        set li = Lightning.createFromPointToPoint("LEAS", c.getX(), c.getY(), c.getZ() + 100.0, t.getX(), t.getY(), t.getZ())
        set B.userInt = li
    endfunction
    
    function end takes Buff B returns nothing
        local Lightning li = B.userInt
        local Creep c = B.getBuffedUnit()
        call li.destroy()
        call c.reorder()
    endfunction
    
    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init
    private function init takes nothing returns nothing
        set BT = BuffType.createDuplicate(cb_stun, 2.5, 0.0, false)
        call BT.setBuffIcon('@@0@@')
        call BT.addEventOnCreate(starta)
        call BT.addEventOnCleanup(end)
    endfunction

On Attack

ONATTACK_chance: 0.08 ONATTACK_chanceLevelAdd: 0.0032
function onAttack takes Tower tower returns nothing
    if Event.getTarget().getSize() >= SIZE_CHAMPION then
        call BT.applyOnlyTimed(tower, Event.getTarget(), 0.9)
    else
        call BT.applyOnlyTimed(tower, Event.getTarget(), 2.5)
    endif
endfunction