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

            [targs1] => Array
                (
                )

            [goldcost] => 1500
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [file] => units\nightelf\Wisp\Wisp.mdl
            [manaN] => 100
            [atkType1] => normal
            [modelScale] => 0.55
            [weapTp1] => missile
            [acquire] => 1000
            [rangeN1] => 1000
            [upgrades] => Array
                (
                )

            [cool1] => 1.4
            [Ubertip] => Emanates the brightest light ever created.
            [regenMana] => 1.5
            [abilList] => @@0@@
            [Name] => Holy Energy
            [Missileart] => Abilities\Spells\Other\HealingSpray\HealBottleMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNHealingWave.blp
            [buildingShadow] => Array
                (
                )

            [blue] => 0
            [unitSound] => Wisp
            [sides1] => 1
            [auto] => Array
                (
                )

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

    [settings] => Array
        (
            [author] => DaveMatthews
            [element] => astral
            [authorDisplay] => DaveMatthews
            [alpha] => 255
            [balanceTip] => |cffFFFF00+0.1 |rmana regen/lvl|n|cffFFFF00+1% |rbuff duration/lvl
            [rarity] => rare
            [version] => 1.0
            [abil_factor] => 0.35
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -34.6248
                    [y] => -30.8716
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 1.53589
                    [file] => Doodads\Ruins\Structures\RuinsBuilding\RuinsBuilding1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 32.9199
                    [y] => -32.8921
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 3.10669
                    [file] => Doodads\Ruins\Structures\RuinsBuilding\RuinsBuilding1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 36.6918
                    [y] => 33.4886
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 4.67748
                    [file] => Doodads\Ruins\Structures\RuinsBuilding\RuinsBuilding1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => -32.2332
                    [y] => 37.0292
                    [z] => 0
                    [scale] => 0.25
                    [rot] => 6.24828
                    [file] => Doodads\Ruins\Structures\RuinsBuilding\RuinsBuilding1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 34.3444
                    [y] => -35.9045
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 2.30384
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => 40.3064
                    [y] => 35.3399
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.32645
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -33.0847
                    [y] => 38.2933
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.32645
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => -37.326
                    [y] => -32.1344
                    [z] => 0
                    [scale] => 0.4
                    [rot] => 1.32645
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => -54.1739
                    [y] => -1.87752
                    [z] => -12.8
                    [scale] => 0.3
                    [rot] => 2.30384
                    [file] => Doodads\Cinematic\GlowingRunes\GlowingRunes8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 2.12502
                    [y] => 55.8938
                    [z] => -12.8
                    [scale] => 0.3
                    [rot] => 2.30384
                    [file] => Doodads\Cinematic\GlowingRunes\GlowingRunes8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => 55.486
                    [y] => -5.61334
                    [z] => -12.8
                    [scale] => 0.3
                    [rot] => 2.30384
                    [file] => Doodads\Cinematic\GlowingRunes\GlowingRunes8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => -1.75056
                    [y] => -60.0668
                    [z] => -12.8
                    [scale] => 0.3
                    [rot] => 2.30384
                    [file] => Doodads\Cinematic\GlowingRunes\GlowingRunes8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => 0.430052
                    [y] => -0.792388
                    [z] => -51.2
                    [scale] => 0.6
                    [rot] => 2.67035
                    [file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => 39.2064
                    [y] => 32.0846
                    [z] => 44.8
                    [scale] => 0.2
                    [rot] => 3.7001
                    [file] => units\human\Priest\Priest_V1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => -32.6768
                    [y] => 35.8537
                    [z] => 44.8
                    [scale] => 0.2
                    [rot] => 5.2709
                    [file] => units\human\Priest\Priest_V1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [15] => Array
                (
                    [x] => 34.4211
                    [y] => -35.3475
                    [z] => 44.8
                    [scale] => 0.2
                    [rot] => 2.1293
                    [file] => units\human\Priest\Priest_V1.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [16] => Array
                (
                    [x] => -34.1531
                    [y] => -29.252
                    [z] => 44.8
                    [scale] => 0.2
                    [rot] => 0.733038
                    [file] => units\human\Priest\Priest_V1.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.1
                )

            [1] => Array
                (
                    [id] => MOD_BUFF_DURATION
                    [base] => 0
                    [add] => 0.01
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
    BuffType dave_glimmer
    BuffType dave_sunlight
    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()
    set dave_glimmer = BuffType.createAuraEffectType(true)
    call m.addModification(MOD_DEBUFF_RESISTANCE,0.15,0.002)
    call dave_glimmer.setBuffModifier(m)
    call dave_glimmer.setBuffIcon('@@1@@')
    
    set dave_sunlight = BuffType.createDuplicate(cb_stun, 1.5, 0.02, false)
    call dave_sunlight.setBuffIcon('@@2@@')

	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Autocast
                    [code] => local Iterate it = Iterate.overUnitsInRangeOfCaster(tower,TARGET_CREEPS,1000)
local Unit u
local integer level= tower.getLevel()
loop
    set u = it.next()
    exitwhen u == 0
    call dave_sunlight.apply(tower,u,level)
endloop
set it = Iterate.overUnitsInRangeOfCaster(tower,TARGET_TOWERS,1000)   
loop
    set u = it.next()
    exitwhen u == 0
    call dave_sunlight.apply(tower,u,level)
endloop
                    [values] => Array
                        (
                            [caster_art] => Abilities\Spells\Other\Awaken\Awaken.mdl
                            [icon] => ReplaceableTextures\CommandButtons\BTNHolyBolt.blp
                            [AUTOCAST_cooldown] => 20
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [AUTOCAST_isExtended] => false
                            [long_explain] => Stuns all towers and all enemies in |cffFFFF801000|r range for |cffFFFF801.5|r seconds. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.02|r seconds
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
                            [AUTOCAST_manacost] => 90
                            [AUTOCAST_range] => 1000
                            [AUTOCAST_buffType] => 0
                            [name] => Sunlight Burst
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Stuns all towers and units.
                            [AUTOCAST_targetType] => 0
                            [target_art] => 
                            [AUTOCAST_autoRange] => 850
                        )

                )

            [2] => Array
                (
                    [name] => Tower Aura
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNPriestMaster.blp
                            [visible] => true
                            [AURA_auraEffect] => dave_glimmer
                            [AURA_power] => 1
                            [long_explain] => Increases the debuff resistance of all towers in |cffFFFF80500|r range by |cffFFFF8015%|r. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2%|r debuff resistance
                            [AURA_level] => 1
                            [AURA_auraRange] => 500
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [AURA_levelAdd] => 1
                            [AURA_powerAdd] => 1
                            [name] => Glimmer of Hope
                            [AURA_targetSelf] => true
                            [short_explain] => Increases the debuff resistance of nearby towers.
                        )

                )

        )

    [abilities] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Aroc
                    [oeValues] => Array
                        (
                            [Missilearc] => 0
                            [DataC1] => 3
                            [Requires] => Array
                                (
                                )

                            [Cool1] => 1.4
                            [Ubertip] => Attacks up to |cffffff803|r targets at the same time.
                            [targs1] => enemies
                            [Dur1] => 1.4
                            [DataA1] => 0
                            [DataB1] => 1
                            [Area1] => 1000
                            [Missileart] => Abilities\Spells\Other\HealingSpray\HealBottleMissile.mdl
                            [Name] => Multishot
                            [Art] => ReplaceableTextures\CommandButtons\BTNHealingWave.blp
                            [HeroDur1] => 1.4
                            [Missilespeed] => 1500
                            [Buttonpos] => 3
                            [Tip] => Multishot
                            [Unubertip] => Attacks up to |cffffff803|r targets at the same time.
                        )

                )

        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Bufftip] => Glimmer of Hope
                            [Buffubertip] => This unit has its debuff resistance increased.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNPriestMaster.blp
                        )

                )

            [1] => Array
                (
                    [id] => @@2@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Bufftip] => Sunlight Burst
                            [Targetattach] => overhead
                            [Buffubertip] => Stunned.
                            [Targetattachcount] => 1
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNHolyBolt.blp
                            [TargetArt] => Abilities\Weapons\WitchDoctorMissile\WitchDoctorMissile.mdl
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)