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

            [targs1] => Array
                (
                )

            [goldcost] => 3100
            [weapsOn] => 1
            [dice1] => 1
            [castpt] => 0.9
            [Missilespeed] => 1500
            [moveHeight] => 54
            [file] => units\human\Jaina\Jaina.mdl
            [manaN] => 30
            [atkType1] => magic
            [modelScale] => 0.75
            [weapTp1] => missile
            [acquire] => 1000
            [rangeN1] => 1000
            [upgrades] => Array
                (
                )

            [cool1] => 1.5
            [Ubertip] => This tower is able to extract experience from creeps and energy from spells.
            [backSw1] => -0.5
            [regenMana] => 1.5
            [abilList] => Array
                (
                )

            [mana0] => 5
            [Name] => Queen of Light
            [Missileart] => Abilities\Spells\NightElf\Rejuvenation\RejuvenationTarget.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNJaina.blp
            [buildingShadow] => Array
                (
                )

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

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

    [settings] => Array
        (
            [author] => Boekie
            [element] => astral
            [authorDisplay] => |cff00CD00Boekie|r
            [alpha] => 255
            [balanceTip] => |cffFFFF00+2 |rmana/lvl
            [rarity] => rare
            [version] => 1.0
            [abil_factor] => 0.71
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -1.43526
                    [y] => -6.45917
                    [z] => -134.4
                    [scale] => 1.8
                    [rot] => 5.2867
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -18.4078
                    [y] => -3.05039
                    [z] => 44.8
                    [scale] => 0.1
                    [rot] => 3.01727
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1.59
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => -2.06463
                    [y] => -23.6943
                    [z] => 44.8
                    [scale] => 0.1
                    [rot] => 4.62655
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1.59
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 17.5696
                    [y] => -6.32804
                    [z] => 44.8
                    [scale] => 0.1
                    [rot] => 6.19262
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1.59
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 3.17421
                    [y] => 11.5032
                    [z] => 44.8
                    [scale] => 0.1
                    [rot] => 1.47479
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1.59
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => 3.4222
                    [y] => -13.2149
                    [z] => 12.8
                    [scale] => 1.2
                    [rot] => 5.70723
                    [file] => Abilities\Spells\NightElf\Rejuvenation\RejuvenationTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -43.3203
                    [y] => -40.7391
                    [z] => -0.000000953674
                    [scale] => 0.5
                    [rot] => 3.7001
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 33.3007
                    [y] => -47.4425
                    [z] => -0.000000953674
                    [scale] => 0.5
                    [rot] => 2.47837
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 41.2516
                    [y] => 29.5872
                    [z] => -0.000000953674
                    [scale] => 0.5
                    [rot] => 4.55531
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => -31.7786
                    [y] => 36.3466
                    [z] => -0.000000953674
                    [scale] => 0.5
                    [rot] => 1.02974
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => -16.5556
                    [y] => -18.4251
                    [z] => 44.8
                    [scale] => 0.1
                    [rot] => 3.8617
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1.59
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => 13.9994
                    [y] => -21.7781
                    [z] => 44.8
                    [scale] => 0.1
                    [rot] => 5.36017
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1.59
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => -13.421
                    [y] => 10.2541
                    [z] => 44.8
                    [scale] => 0.1
                    [rot] => 2.26464
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1.59
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => 14.4017
                    [y] => 5.66619
                    [z] => 44.8
                    [scale] => 0.1
                    [rot] => 0.661699
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1.59
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => -31.5989
                    [y] => -2.66412
                    [z] => 76.8
                    [scale] => 0.1
                    [rot] => 3.06756
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [15] => Array
                (
                    [x] => -5.83234
                    [y] => -38.2376
                    [z] => 76.8
                    [scale] => 0.1
                    [rot] => 4.6269
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [16] => Array
                (
                    [x] => 5.26185
                    [y] => 28.5351
                    [z] => 76.8
                    [scale] => 0.1
                    [rot] => 1.49155
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [17] => Array
                (
                    [x] => 30.0812
                    [y] => -9.26718
                    [z] => 76.8
                    [scale] => 0.1
                    [rot] => 6.23396
                    [file] => Doodads\Ruins\Structures\RuinsArchway0_\RuinsArchway0_0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 170
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [18] => Array
                (
                    [x] => 31.6622
                    [y] => -19.3611
                    [z] => 76.8
                    [scale] => 0.4
                    [rot] => 0.1756
                    [file] => Abilities\Spells\Human\DivineShield\DivineShieldTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [19] => Array
                (
                    [x] => -21.0929
                    [y] => 0.869583
                    [z] => 76.8
                    [scale] => 0.4
                    [rot] => 3.09395
                    [file] => Abilities\Spells\Human\DivineShield\DivineShieldTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [20] => Array
                (
                    [x] => 33.5845
                    [y] => -48.5352
                    [z] => 83.2
                    [scale] => 0.12
                    [rot] => 5.43755
                    [file] => Doodads\Ruins\Props\Statue\Statue0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 175
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [21] => Array
                (
                    [x] => 41.8185
                    [y] => 30.883
                    [z] => 83.2
                    [scale] => 0.12
                    [rot] => 0.698501
                    [file] => Doodads\Ruins\Props\Statue\Statue0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 175
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [22] => Array
                (
                    [x] => -42.6817
                    [y] => -41.8033
                    [z] => 83.2
                    [scale] => 0.12
                    [rot] => 3.95715
                    [file] => Doodads\Ruins\Props\Statue\Statue0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 175
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [23] => Array
                (
                    [x] => -31.0837
                    [y] => 35.5596
                    [z] => 83.2
                    [scale] => 0.12
                    [rot] => 2.09644
                    [file] => Doodads\Ruins\Props\Statue\Statue0.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 175
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_MANA
                    [base] => 0
                    [add] => 2
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Spell Target
                    [code] => local Unit caster = Event.getTarget()
    local Buff b = tower.getBuffOfType(boekie_lightSpeed_buff)
    local integer twrLevel = tower.getLevel()
    local integer UID = tower.getUID()
    local integer bonusDmg = 40 + twrLevel //each point = 0.5% dmg bonus

    if caster.isATower() then
        call caster.addExp(2) 
        if b == 0 then
            set boekie_lightSpeed_buff.apply(tower, tower, bonusDmg).userInt = 1
        else
            if b.userInt >= 15 then
                return //already at max stacks. ABORT!
            endif
            set b.userInt = b.userInt + 1
            call b.setPower(b.getPower() + bonusDmg)
        endif
        call TriggerSleepAction(12 + 0.01 * twrLevel)
        if tower.getUID() == UID then //make sure tower still alive
            set b = tower.getBuffOfType(boekie_lightSpeed_buff)
            if b != 0 then //make sure buff hasn't been purged or something
                if b.userInt <= 1 then
                    call b.removeBuff()
                else
                    set b.userInt = b.userInt - 1
                    call b.setPower(b.getPower() - bonusDmg)
                endif
            endif
        endif
    endif
                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNDispelMagic.blp
                            [visible] => true
                            [name] => Channel Energy
                            [short_explain] => This towers deals more damage when hit by a friendly spell and gives experience to the caster.
                            [long_explain] => Whenever this tower is hit by a friendly spell, the caster of that spell will be granted |cffFFFF802|r experience and this tower will gain |cffFFFF8020%|r bonus damage for |cffFFFF8012|r seconds. This effect stacks up to |cffFFFF8015|r times, but new stacks will not refresh the duration of olds ones.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.5%|r damage |n|cffFFFF80+0.1|r seconds duration
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@import
        BuffType boekie_expGain_buff
        //@import
        BuffType boekie_lightSpeed_buff
    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
	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => Autocast
                    [code] => local integer level = tower.getLevel()
    set boekie_expGain_buff.apply(tower,Event.getTarget(),level*2 + 20).userInt = 10 + level
                    [values] => Array
                        (
                            [caster_art] => 
                            [icon] => ReplaceableTextures\CommandButtons\BTNHeal.blp
                            [AUTOCAST_cooldown] => 5
                            [AUTOCAST_numBuffsBeforeIdle] => 3
                            [visible] => true
                            [AUTOCAST_isExtended] => false
                            [long_explain] => Casts a buff on a creep. Towers that damage this creep have a |cffFFFF8033%|r chance to extract |cffFFFF802|r experience. Buff lasts |cffFFFF8010|r seconds or until |cffFFFF8010|r extractions occur.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.1|r experience|n|cffFFFF80+1|r extraction
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_BUFF
                            [AUTOCAST_manacost] => 20
                            [AUTOCAST_range] => 1000
                            [name] => Extract Experience
                            [AUTOCAST_buffType] => boekie_expGain_buff
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Debuffs a creep such that towers that damage it have a chance to gain experience.
                            [AUTOCAST_targetType] => TARGET_TYPE_CREEPS
                            [target_art] => 
                            [AUTOCAST_autoRange] => 1000
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => boekie_expGain_buff
                )

            [1] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => boekie_lightSpeed_buff
                )

        )

)