Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [RngBuff1] => 250
            [MissileHoming] => 1
            [Upgrade] => Array
                (
                )

            [targs1] => Array
                (
                )

            [goldcost] => 3500
            [weapsOn] => 1
            [Hfact1] => 0.66
            [dice1] => 1
            [Missilespeed] => 900
            [file] => .mdl
            [Harea1] => 100
            [manaN] => 100
            [atkType1] => hero
            [modelScale] => 0.6
            [weapTp1] => msplash
            [acquire] => 900
            [rangeN1] => 900
            [upgrades] => Array
                (
                )

            [cool1] => 0.4
            [Ubertip] => When you think it looks very fragile, you're right. But its also a devastating machine.
            [Farea1] => 75
            [regenMana] => 2.5
            [abilList] => Array
                (
                )

            [Qarea1] => 125
            [launchZ] => 170
            [Name] => Grab-O-Bot
            [Missileart] => Abilities\Weapons\BansheeMissile\BansheeMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNFrostMourne.blp
            [buildingShadow] => Array
                (
                )

            [unitSound] => SteamTank
            [Qfact1] => 0.33
            [sides1] => 1
            [auto] => Array
                (
                )

            [dmgplus1] => 658
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => cedi
            [element] => iron
            [authorDisplay] => cedi
            [alpha] => 255
            [balanceTip] => |cffCCFF00Splash attack:|n   |cffFFFF0075|r AoE: |cff00FF00100%|r damage|r|n   |cffFFFF00100|r AoE: |cffFFFF0066%|r damage|r|n   |cffFFFF00125|r AoE: |cffFF800033%|r damage|r
            [rarity] => unique
            [version] => 1.0
            [abil_factor] => 0.66
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 16.3658
                    [y] => -2.56905
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 3.10669
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -18.5227
                    [y] => -1.32407
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 3.10669
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 0.309248
                    [y] => -0.0923665
                    [z] => 57.6
                    [scale] => 0.05
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\Archway45\Archway45.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 0.299123
                    [y] => -2.8602
                    [z] => 57.6
                    [scale] => 0.05
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\Archway45\Archway45.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => -1.08409
                    [y] => -0.622581
                    [z] => 83.2
                    [scale] => 0.2
                    [rot] => 4.67593
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -4.68356
                    [y] => -0.189781
                    [z] => 153.6
                    [scale] => 0.12
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => 0.0341106
                    [y] => -1.00538
                    [z] => 153.6
                    [scale] => 0.12
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => -44.9706
                    [y] => -1.28059
                    [z] => 153.6
                    [scale] => 0.08
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 40.5778
                    [y] => 0.504176
                    [z] => 153.6
                    [scale] => 0.08
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 0.680002
                    [y] => 0.116935
                    [z] => 83.2
                    [scale] => 0.1
                    [rot] => 1.28669
                    [file] => Abilities\Spells\Orc\ReinforcedTrollBurrow\ReinforcedTrollBurrowTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -3.12
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => 15.5132
                    [y] => -8.57842
                    [z] => 0
                    [scale] => 0.05
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => 19.6437
                    [y] => -7.3085
                    [z] => 0
                    [scale] => 0.05
                    [rot] => 5.16484
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => 11.2367
                    [y] => -7.0438
                    [z] => 0
                    [scale] => 0.05
                    [rot] => 4.28599
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => 16.6953
                    [y] => 3.84688
                    [z] => 0
                    [scale] => 0.05
                    [rot] => 1.62654
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => -13.5868
                    [y] => -5.72419
                    [z] => 0
                    [scale] => 0.05
                    [rot] => 5.16484
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [15] => Array
                (
                    [x] => -21.9938
                    [y] => -5.45948
                    [z] => 0
                    [scale] => 0.05
                    [rot] => 4.28599
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [16] => Array
                (
                    [x] => -16.5352
                    [y] => 5.4312
                    [z] => 0
                    [scale] => 0.05
                    [rot] => 1.62654
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [17] => Array
                (
                    [x] => -18.4797
                    [y] => -6.04524
                    [z] => 0
                    [scale] => 0.05
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle\City_ColumnSingle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [18] => Array
                (
                    [x] => 0.220747
                    [y] => -5.70462
                    [z] => 57.6
                    [scale] => 0.05
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\Archway45\Archway45.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [19] => Array
                (
                    [x] => -45.2036
                    [y] => -31.6978
                    [z] => 153.6
                    [scale] => 0.2
                    [rot] => 4.66719
                    [file] => Abilities\Spells\Undead\Possession\PossessionCaster.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [20] => Array
                (
                    [x] => 40.2326
                    [y] => -30.2414
                    [z] => 153.6
                    [scale] => 0.2
                    [rot] => 4.66719
                    [file] => Abilities\Spells\Undead\Possession\PossessionCaster.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [21] => Array
                (
                    [x] => -0.243461
                    [y] => 0.641545
                    [z] => 153.6
                    [scale] => 0.5
                    [rot] => 1.01229
                    [file] => Abilities\Spells\Undead\Possession\PossessionTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [22] => Array
                (
                    [x] => 0.0825702
                    [y] => 1.08984
                    [z] => 76.8
                    [scale] => 0.6
                    [rot] => 4.71239
                    [file] => Abilities\Weapons\BansheeMissile\BansheeMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => 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
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNMagicLariet.blp
                            [visible] => true
                            [name] => Grapple
                            [short_explain] => This tower can grab enemies.
                            [long_explain] => Each time the bot attacks there is an |cffFFFF808%|r it will grab the target, holding it in place for |cffFFFF802.5|r seconds. The duration is reduced to |cffFFFF800.9|r seconds for champions and bosses.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.32%|r chance
                        )

                )

            [1] => Array
                (
                    [name] => Autocast
                    [code] => 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
                    [values] => Array
                        (
                            [caster_art] => 
                            [icon] => ReplaceableTextures\CommandButtons\BTNWispSplode.blp
                            [AUTOCAST_cooldown] => 15.00
                            [AUTOCAST_numBuffsBeforeIdle] => 1
                            [AUTOCAST_isExtended] => false
                            [long_explain] => Slams all creeps in |cffFFFF80250|r AoE around the target, dealing |cffFFFF801250|r spell damage and stunning for |cffFFFF802|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+185|r damage
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_UNIT
                            [AUTOCAST_manacost] => 50
                            [AUTOCAST_range] => 900.00
                            [AUTOCAST_buffType] => 0
                            [name] => Shock
                            [AUTOCAST_targetSelf] => true
                            [short_explain] => Stuns and damages all creeps around the target.
                            [AUTOCAST_targetType] => TARGET_TYPE_CREEPS
                            [target_art] => 
                            [AUTOCAST_autoRange] => 900.00
                        )

                )

            [2] => Array
                (
                    [name] => On Attack
                    [code] => 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
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [ONATTACK_chance] => 0.08
                            [ONATTACK_chanceLevelAdd] => 0.0032
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Bmlt
                    [oeValues] => Array
                        (
                            [Bufftip] => Grappled
                            [Buffubertip] => This unit is grappled; it cannot move.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNMagicLariet.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)