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

            [targs1] => air
            [goldcost] => 2800
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [moveHeight] => 5
            [file] => buildings\human\ArcaneSanctum\ArcaneSanctum.mdl
            [manaN] => 20
            [atkType1] => normal
            [modelScale] => 0.4
            [weapTp1] => missile
            [acquire] => 800
            [rangeN1] => 1600
            [upgrades] => Array
                (
                )

            [cool1] => 3
            [Ubertip] => Advanced storm tower that emphasizes the use of anti air towers.
            [green] => 180
            [regenMana] => 1.5
            [abilList] => Array
                (
                )

            [Name] => Storm Focus
            [Missileart] => Abilities\Spells\Other\Charm\CharmTarget.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNAbsorbMagic.blp
            [red] => 180
            [buildingShadow] => Array
                (
                )

            [sides1] => 5001
            [uberSplat] => OSMA
            [auto] => Array
                (
                )

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

    [settings] => Array
        (
            [author] => SirCoqalot.
            [element] => storm
            [authorDisplay] => SirCoqaLot.
            [alpha] => 150
            [balanceTip] => |cffFF0000Attacks AIR only|r|n|cffFFFF00+10% |rdmg to air
            [rarity] => unique
            [version] => 1.0
            [abil_factor] => 0.4
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 3.98396
                    [y] => 1.54975
                    [z] => 0
                    [scale] => 0.36
                    [rot] => 3.20745
                    [file] => Doodads\Barrens\Rocks\Crator\Crator0.mdl
                    [red] => 155
                    [green] => 200
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -15.4352
                    [y] => -5.1413
                    [z] => -19.2
                    [scale] => 0.125
                    [rot] => 0.314159
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 180
                    [green] => 180
                    [blue] => 255
                    [alpha] => 150
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 16.7159
                    [y] => 6.74598
                    [z] => -19.2
                    [scale] => 0.125
                    [rot] => 3.50292
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 180
                    [green] => 180
                    [blue] => 255
                    [alpha] => 150
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 12.7631
                    [y] => -44.1876
                    [z] => -19.2
                    [scale] => 0.1
                    [rot] => 1.80929
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 180
                    [green] => 180
                    [blue] => 255
                    [alpha] => 150
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => -42.3896
                    [y] => -9.02406
                    [z] => -19.2
                    [scale] => 0.1
                    [rot] => 0.231699
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 180
                    [green] => 180
                    [blue] => 255
                    [alpha] => 150
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => 37.7618
                    [y] => 9.58441
                    [z] => 25.6
                    [scale] => 0.85
                    [rot] => 2.3562
                    [file] => Abilities\Spells\Items\AIlb\AIlbTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => -9.46007
                    [y] => 47.0623
                    [z] => -19.2
                    [scale] => 0.1
                    [rot] => 4.93377
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 180
                    [green] => 180
                    [blue] => 255
                    [alpha] => 150
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 50.0981
                    [y] => 0.995787
                    [z] => -19.2
                    [scale] => 0.1
                    [rot] => 2.3685
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle_Ruined\City_ColumnSemiCircle_Ruined.mdl
                    [red] => 180
                    [green] => 180
                    [blue] => 255
                    [alpha] => 150
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => 10.3082
                    [y] => -35.7484
                    [z] => 25.6
                    [scale] => 0.7
                    [rot] => 4.7822
                    [file] => Abilities\Spells\Items\AIlb\AIlbTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => -37.4215
                    [y] => -12.1488
                    [z] => 25.6
                    [scale] => 0.75
                    [rot] => 6.19592
                    [file] => Abilities\Spells\Items\AIlb\AIlbTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_AIR
                    [base] => 0.1
                    [add] => 0
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType sir_focus_aura
        BuffType sir_focus_buff
    endglobals
    
    function auraOnCreate takes Buff b returns nothing
        set b.userReal = 0 //Will store tower's bonus damage 
    endfunction
    
    function auraPeriodic takes Buff b returns nothing    
        local Tower tower = b.getCaster()
        local Tower buffee = b.getBuffedUnit()
        local real multiplier = 0.5 + 0.008 * tower.getLevel()
        local real bonusDamage = 1.0
        if buffee.getBuffOfType(sir_focus_buff) != 0 then
            set bonusDamage = 2.0
        endif
        //Calculate and set new damage bonus
        set bonusDamage = bonusDamage * (buffee.getDamageToSize(SIZE_AIR) - 1) * multiplier
        call buffee.modifyProperty(MOD_DAMAGE_ADD_PERC, bonusDamage - b.userReal)
        set b.userReal = bonusDamage
    endfunction
    
    function auraOnCleanup takes Buff b returns nothing
        call b.getBuffedUnit().modifyProperty(MOD_DAMAGE_ADD_PERC, -b.userReal)
    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 sir_focus_aura = BuffType.createAuraEffectType(false)
    set sir_focus_buff = BuffType.create(5,0.05,true)
    call m.addModification(MOD_DMG_TO_AIR,0.1,0.008)
    call sir_focus_aura.setBuffIcon('@@0@@')
    call sir_focus_aura.addEventOnCreate(auraOnCreate)
    call sir_focus_aura.addPeriodicEvent(auraPeriodic, 1.0)
    call sir_focus_aura.addEventOnCleanup(auraOnCleanup)
    call sir_focus_buff.setBuffIcon('@@1@@')
    call sir_focus_buff.setBuffModifier(m)
	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Autocast
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [caster_art] => Abilities\Spells\Human\Polymorph\PolyMorphDoneGround.mdl
                            [icon] => ReplaceableTextures\CommandButtons\BTNCrushingWave.blp
                            [AUTOCAST_cooldown] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [AUTOCAST_isExtended] => true
                            [long_explain] => Casts a buff on a tower in |cffffff80800|r range, doubling the effect of 'Gust' and increasing that tower's damage against air units by |cffffff8010%|r for |cffffff805|r seconds. |n|n|cffFF8000Level Bonus:|r|n|cffffff80+0.05|r seconds duration|n|cffffff80+0.8%|r damage against air
                            [AUTOCAST_autocastType] => AC_TYPE_ALWAYS_BUFF
                            [AUTOCAST_manacost] => 15
                            [AUTOCAST_range] => 800
                            [AUTOCAST_buffType] => sir_focus_buff
                            [name] => Freezing Gust
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Buffs a tower in range, increasing the effect of 'Gust'.
                            [AUTOCAST_targetType] => TARGET_TYPE_TOWERS
                            [target_art] => 
                            [AUTOCAST_autoRange] => 800
                        )

                )

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

                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNCyclone.blp
                            [visible] => true
                            [AURA_auraEffect] => sir_focus_aura
                            [AURA_power] => 0
                            [long_explain] => Towers in |cffffff80800|r range around the Storm Focus gain additional attackdamage equal to |cffffff8050%|r of the bonus damage against air they have. |n|n|cffFF8000Level Bonus:|r|n|cffffff80+0.8%|r of bonus damage against air as additional attackdamage
                            [AURA_level] => 0
                            [AURA_auraRange] => 800
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [AURA_levelAdd] => 1
                            [AURA_powerAdd] => 1
                            [name] => Gust
                            [AURA_targetSelf] => true
                            [short_explain] => Towers close to the Storm Focus deal additional attackdamage based on the amount of bonus damage against air they have.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BHav
                    [oeValues] => Array
                        (
                            [Bufftip] => Gust
                            [Buffubertip] => This tower deals more damage based on how strong it is against air units.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCyclone.blp
                            [EditorName] => Gust
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BHav
                    [oeValues] => Array
                        (
                            [Bufftip] => Freezing Gust
                            [Buffubertip] => The effect of gust on this tower is improved and it has bonus damage against air.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNCrushingWave.blp
                            [EditorName] => Freezing Gust
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)