Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [Ubertip] => Array
                (
                )

            [Art] => ReplaceableTextures\CommandButtons\BTNScrollOfHealing.blp
            [abilList] => Array
                (
                )

            [Name] => Scroll of Speed
        )

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [goldcost] => 500
            [author] => Boekie
            [authorDisplay] => |cff00CD00Boekie|r
            [version] => 1.0
            [rarity] => rare
        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Item Creation
                    [code] => call itm.setCharges(10)
    //The item will use the userInt for charges, cause charges are bugged.
    set itm.userInt=10
                    [values] => Array
                        (
                            [explain] => 
                            [visible] => false
                            [goldcost] => 0
                            [name] => 
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    BuffType boekie_scroll_speed
    endglobals
    
    //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() 
    call m.addModification(MOD_ATTACKSPEED,0.10,0.0) 
    set boekie_scroll_speed = BuffType.create(0.0,0.0,true) //0.0 time since I will apply it custom timed 
    call boekie_scroll_speed.setBuffModifier(m)  
    call boekie_scroll_speed.setBuffIcon('@@0@@')   
	endfunction
                    [values] => Array
                        (
                            [explain] => 
                            [visible] => false
                            [goldcost] => 0
                            [name] => 
                        )

                )

            [2] => Array
                (
                    [name] => Periodic
                    [code] => set itm.userInt = itm.userInt + 3
    if itm.userInt >= 11 then
    set itm.userInt = 10
    endif   
       
    call itm.setCharges(itm.userInt)  
    call TriggerSleepAction(0.1)  
    call itm.setCharges(itm.userInt)
                    [values] => Array
                        (
                            [explain] => Regenerates |cffFFFF803|r charges every |cffFFFF8040|r seconds up to a maximum of |cffFFFF8010|r charges.
                            [visible] => true
                            [goldcost] => 0
                            [PERIODIC_period] => 40
                            [name] => Recharge
                        )

                )

            [3] => Array
                (
                    [name] => Autocast
                    [code] => local Tower tower=itm.getCarrier()
local integer lvl = tower.getLevel()
local Iterate it
local Unit next
if itm.userInt > 0  then
    set it = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TOWERS, 350)
    loop
            set next = it.next()
            call boekie_scroll_speed.applyCustomTimed(tower,next,lvl*2,4.0)
            exitwhen next == 0
    endloop
    set itm.userInt=itm.userInt-1    
endif
    
    call itm.setCharges(itm.userInt)  
    call TriggerSleepAction(0.1)  
    call itm.setCharges(itm.userInt)
                    [values] => Array
                        (
                            [explain] => Upon activation, towers in |cffFFFF80350|r range receive |cffFFFF8010%|r bonus attackspeed for |cffFFFF804|r seconds. Costs |cffFFFF801|r charge.
                            [AUTOCAST_cooldown] => 4
                            [AUTOCAST_autoRange] => 1000
                            [visible] => true
                            [AUTOCAST_manacost] => 0
                            [goldcost] => 500
                            [AUTOCAST_range] => 0
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [caster_art] => 
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => false
                            [name] => Speed Boost
                            [AUTOCAST_targetSelf] => true
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BNbr
                    [oeValues] => Array
                        (
                            [Targetattach] => origin
                            [EditorName] => Speed Boost
                            [Buffubertip] => This unitis under the effect of a scroll of speed. Its attack speed has been increased.
                            [TargetArt] => Abilities\Spells\Other\Drain\ManaDrainTarget.mdl
                            [Bufftip] => Speed Boost
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNScrollOfHealing.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)