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

            [targs1] => Array
                (
                )

            [goldcost] => 1700
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [moveHeight] => -24
            [file] => .mdl
            [manaN] => 30
            [atkType1] => normal
            [modelScale] => 0.4
            [weapTp1] => missile
            [Missilearc] => 0.15
            [acquire] => 1200
            [rangeN1] => 1200
            [upgrades] => Array
                (
                )

            [cool1] => 1.5
            [Ubertip] => This tower uses its lightning powers to help its allies.
            [regenMana] => 1
            [abilList] => Array
                (
                )

            [launchZ] => 90
            [Name] => Charged Obelisk
            [Missileart] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNAnimalWarTraining.blp
            [buildingShadow] => Array
                (
                )

            [sides1] => 1
            [auto] => Array
                (
                )

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

    [settings] => Array
        (
            [author] => Boekie
            [element] => storm
            [authorDisplay] => |cff00CD00Boekie|r
            [alpha] => 255
            [balanceTip] => |cffFFFF00+0.04 |rmana regen/lvl
            [rarity] => unique
            [version] => 1.0
            [abil_factor] => 0.3
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 3.74764
                    [y] => -1.58934
                    [z] => 76.8
                    [scale] => 1.2
                    [rot] => 4.45059
                    [file] => Abilities\Spells\Items\AIlb\AIlbTarget.mdl
                    [red] => 150
                    [green] => 150
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -4.83904
                    [y] => -0.704132
                    [z] => 96
                    [scale] => 1.3
                    [rot] => 3.13713
                    [file] => Abilities\Spells\Items\AIlb\AIlbTarget.mdl
                    [red] => 150
                    [green] => 150
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -0.5
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => -0.425142
                    [y] => 0.0749913
                    [z] => 32
                    [scale] => 0.5
                    [rot] => 5.54566
                    [file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => -3.58695
                    [y] => -5.58731
                    [z] => 128
                    [scale] => 0.6
                    [rot] => 5.77704
                    [file] => Abilities\Spells\Orc\LightningShield\LightningShieldTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 25.4334
                    [y] => -22.6824
                    [z] => 6.4
                    [scale] => 0.3
                    [rot] => 0.0316458
                    [file] => Doodads\Cityscape\Structures\CityLowWall135\CityLowWall135.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -23.161
                    [y] => -42.09
                    [z] => -12.8
                    [scale] => 0.3
                    [rot] => 3.92818
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -20.1747
                    [y] => -28.2765
                    [z] => 6.4
                    [scale] => 0.3
                    [rot] => 4.7279
                    [file] => Doodads\Cityscape\Structures\CityLowWall135\CityLowWall135.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 44.4503
                    [y] => -25.696
                    [z] => -12.8
                    [scale] => 0.3
                    [rot] => 3.98132
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 23.3245
                    [y] => 42.6605
                    [z] => -12.8
                    [scale] => 0.3
                    [rot] => 5.57031
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => -39.6295
                    [y] => 27.4836
                    [z] => -12.8
                    [scale] => 0.3
                    [rot] => 3.91783
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => -0.292391
                    [y] => 1.16295
                    [z] => -70.4
                    [scale] => 1.2
                    [rot] => 3.94502
                    [file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => 18.5004
                    [y] => 25.978
                    [z] => 6.4
                    [scale] => 0.3
                    [rot] => 4.72854
                    [file] => Doodads\Cityscape\Structures\CityLowWall135\CityLowWall135.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => -22.5231
                    [y] => 21.9894
                    [z] => 6.4
                    [scale] => 0.3
                    [rot] => 3.16664
                    [file] => Doodads\Cityscape\Structures\CityLowWall135\CityLowWall135.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => -45.4553
                    [y] => -2.50083
                    [z] => 0.000000953674
                    [scale] => 0.4
                    [rot] => 2.34777
                    [file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => -3.52662
                    [y] => 44.4533
                    [z] => 0.000000953674
                    [scale] => 0.4
                    [rot] => 2.34568
                    [file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [15] => Array
                (
                    [x] => 1.75542
                    [y] => -46.5451
                    [z] => 0.000000953674
                    [scale] => 0.4
                    [rot] => 5.51068
                    [file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [16] => Array
                (
                    [x] => 41.8652
                    [y] => -1.96101
                    [z] => 0.000000953674
                    [scale] => 0.4
                    [rot] => 5.53427
                    [file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_MANA_REGEN
                    [base] => 0
                    [add] => 0.04
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
    BuffType boekie_chargeBuff 
    endglobals
    
    function boekie_charge takes Buff b returns nothing  
        local Tower caster = b.getCaster()
        local Unit target = b.getBuffedUnit() 
        local integer newLevel = b.getLevel() + 50 + caster.getLevel()
        local real duration = b.getRemainingDuration()
        
        call boekie_chargeBuff.applyCustomTimed(caster,target,newLevel,duration).setRemainingDuration(duration)
        
    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
    local Modifier m = Modifier.create() 
       
    set boekie_chargeBuff = BuffType.create( 10.00, 0.0, true )  
    call boekie_chargeBuff.setBuffIcon( '@@0@@' )  
    call m.addModification( MOD_ATTACKSPEED, 0.25, 0.001 )  
    call boekie_chargeBuff.setBuffModifier( m ) 
    call boekie_chargeBuff.addPeriodicEvent(EventHandler.boekie_charge,1)
    
    
	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Autocast
                    [code] => call boekie_chargeBuff.apply(tower,Event.getTarget(),tower.getLevel()*6)
                    [values] => Array
                        (
                            [caster_art] => 
                            [icon] => ReplaceableTextures\CommandButtons\BTNOrbOfLightning.blp
                            [AUTOCAST_cooldown] => 5
                            [AUTOCAST_numBuffsBeforeIdle] => 3
                            [AUTOCAST_isExtended] => false
                            [long_explain] => Applies a buff to target tower which lasts |cffFFFF8010|r seconds, it increases the attack speed of the tower by |cffFFFF8025%|r. Every second this buff will grant an additional |cffFFFF805%|r bonus attackspeed.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.6%|r base attackspeed|n|cffFFFF80+0.1%|r bonus attackspeed
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_BUFF
                            [AUTOCAST_manacost] => 20
                            [AUTOCAST_range] => 1200
                            [AUTOCAST_buffType] => boekie_chargeBuff
                            [name] => Charge
                            [AUTOCAST_targetSelf] => true
                            [short_explain] => Charges an allied tower, increasing attackspeed.
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [target_art] => 
                            [AUTOCAST_autoRange] => 1200
                        )

                )

            [2] => Array
                (
                    [name] => On Attack
                    [code] => local Iterate inRange 
    local real numResults=0.0 
    local Unit result 
    local Unit next 
    local integer lvl = tower.getLevel()  
    set inRange=Iterate.overUnitsInRangeOfCaster(tower,TARGET_CREEPS,1000) 

    loop 
        set next=inRange.next() 
        exitwhen next==0 
        set numResults=numResults+1.0 

        if GetRandomReal(0.0,1.0)<=1.0/numResults then 
            set result=next 
        endif 
    endloop 

    if numResults>0.5 then 
        call tower.doSpellDamage(result,1000+(lvl*40),tower.calcSpellCrit(0.20+(lvl*0.004),0))
        
        if result.getSize() < SIZE_BOSS then
            call cb_stun.applyOnlyTimed(tower,result,0.2)
        endif
        
        call SFXAtUnit("Abilities\\Weapons\\Bolt\\BoltImpact.mdl",result.getUnit()) 
    endif
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNMonsoon.blp
                            [visible] => true
                            [name] => Electric Field
                            [short_explain] => Shocks random creeps on attack.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => On every attack this tower shocks a creep in |cffFFFF801000|r range. This shock deals |cffFFFF801000|r spelldamage and stuns for |cffFFFF800.2|r seconds, the spelldamage has |cffFFFF8020%|r bonus chance to crit. The stun does not work on bosses! |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+40|r spelldamage|n|cffFFFF80+0.4%|r bonus crit chance
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Blsh
                    [oeValues] => Array
                        (
                            [Bufftip] => Charged
                            [Buffubertip] => This unit is charged; its attackspeed is increased.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNOrbOfLightning.blp
                            [EditorName] => Charged
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)