Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [auto] => Array
                (
                )

            [Art] => ReplaceableTextures\CommandButtons\BTNFrostbrandWeapon.blp
            [dmgplus1] => 4708
            [bldtm] => 1
            [goldcost] => 3000
            [unitSound] => ElvenGuardTower
            [sides1] => 1
            [acquire] => 800
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Frostbrand Totem
            [weapTp1] => missile
            [file] => .mdl
            [MissileHoming] => 1
            [uberSplat] => YTDN
            [Missilespeed] => 1600
            [Missileart] => Abilities\Spells\Other\FrostDamage\FrostDamage.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [modelScale] => 0.1
            [rangeN1] => 800
            [atkType1] => pierce
            [cool1] => 3
            [Ubertip] => All will embrace the cold, by truth or by force.
            [scaleBull] => 0
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

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

            [abil_factor] => 0.35
            [author] => Ashbringer
            [alpha] => 255
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => ice
            [rarity] => unique
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 1.16817
                    [y] => -0.190388
                    [z] => -19.2
                    [scale] => 0.15
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Structures\City_ColumnDouble\City_ColumnDouble.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [1] => Array
                (
                    [x] => 0.748423
                    [y] => 1.30688
                    [z] => -19.2
                    [scale] => 0.15
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_ColumnDouble\City_ColumnDouble.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [2] => Array
                (
                    [x] => -0.107925
                    [y] => 0.220501
                    [z] => -19.2
                    [scale] => 1.65
                    [rot] => 5.89921
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 75
                    [green] => 75
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [3] => Array
                (
                    [x] => -0.155609
                    [y] => -0.132763
                    [z] => 0
                    [scale] => 0.55
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [4] => Array
                (
                    [x] => -0.145691
                    [y] => 0.030033
                    [z] => -25.6
                    [scale] => 2.1
                    [rot] => 5.89921
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 75
                    [green] => 75
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [5] => Array
                (
                    [x] => -32.0807
                    [y] => -31.4613
                    [z] => -6.4
                    [scale] => 0.37
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [6] => Array
                (
                    [x] => -0.0496606
                    [y] => -0.0099144
                    [z] => 25.6
                    [scale] => 1.5
                    [rot] => 5.89921
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 75
                    [green] => 75
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [7] => Array
                (
                    [x] => 32.337
                    [y] => -31.929
                    [z] => -6.4
                    [scale] => 0.37
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [8] => Array
                (
                    [x] => 30.4961
                    [y] => 29.9626
                    [z] => -6.4
                    [scale] => 0.37
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [9] => Array
                (
                    [x] => 22.5755
                    [y] => 21.9693
                    [z] => 0
                    [scale] => 0.26
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [10] => Array
                (
                    [x] => -21.8754
                    [y] => -23.3473
                    [z] => 0
                    [scale] => 0.26
                    [rot] => 5.49779
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [11] => Array
                (
                    [x] => -22.6961
                    [y] => 22.2427
                    [z] => 0
                    [scale] => 0.26
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [12] => Array
                (
                    [x] => 22.6204
                    [y] => -22.2082
                    [z] => 0
                    [scale] => 0.26
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [13] => Array
                (
                    [x] => -30.8065
                    [y] => 31.8316
                    [z] => -6.4
                    [scale] => 0.37
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [14] => Array
                (
                    [x] => 0.0164833
                    [y] => 2.12257
                    [z] => 25.6
                    [scale] => 1.65
                    [rot] => 4.67486
                    [file] => Abilities\Weapons\LichMissile\LichMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [15] => Array
                (
                    [x] => -0.117049
                    [y] => -0.201224
                    [z] => 70.4
                    [scale] => 0.35
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 95
                    [green] => 95
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [16] => Array
                (
                    [x] => -0.173762
                    [y] => 41.7693
                    [z] => 153.6
                    [scale] => 0.75
                    [rot] => 1.5708
                    [file] => Doodads\Cinematic\GlowingRunes\GlowingRunes4.mdl
                    [red] => 255
                    [green] => 175
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -4.71
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [17] => Array
                (
                    [x] => -27.3726
                    [y] => -31.1488
                    [z] => 0.000000953674
                    [scale] => 0.51
                    [rot] => 3.92699
                    [file] => Abilities\Spells\Undead\UndeadMine\UndeadMineCircle.mdl
                    [red] => 75
                    [green] => 75
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [18] => Array
                (
                    [x] => -30.9232
                    [y] => 27.1109
                    [z] => 0.000000953674
                    [scale] => 0.51
                    [rot] => 2.3562
                    [file] => Abilities\Spells\Undead\UndeadMine\UndeadMineCircle.mdl
                    [red] => 75
                    [green] => 75
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [19] => Array
                (
                    [x] => 27.3864
                    [y] => 30.8227
                    [z] => 0.000000953674
                    [scale] => 0.51
                    [rot] => 0.785398
                    [file] => Abilities\Spells\Undead\UndeadMine\UndeadMineCircle.mdl
                    [red] => 75
                    [green] => 75
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [20] => Array
                (
                    [x] => 30.995
                    [y] => -27.789
                    [z] => 0.000000953674
                    [scale] => 0.51
                    [rot] => 5.49779
                    [file] => Abilities\Spells\Undead\UndeadMine\UndeadMineCircle.mdl
                    [red] => 75
                    [green] => 75
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

            [21] => Array
                (
                    [x] => -0.125173
                    [y] => 0.0530547
                    [z] => -12.8
                    [scale] => 1.3
                    [rot] => 2.58309
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                    [pcolor] => 255
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Level Up
                    [code] => set tower.userReal = 0.75 + (tower.getLevel() * 0.03)
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType ashbringer_frostbrand_buff
        BuffType ashbringer_frostshock_buff
    endglobals
    
    function ashbringer_flametongue_ondamage takes Buff b returns nothing
        local Tower caster = b.getCaster()
        local Tower tower = b.getBuffedUnit()
        local Creep target = Event.getTarget()
        local Buff fs = target.getBuffOfType(ashbringer_frostshock_buff)
        local integer power
        
        set Event.damage = Event.damage + ((Event.damage * caster.userReal) / tower.getAttackType().getDamageAgainst(target.getArmorType()) * AttackType.ELEMENTAL.getDamageAgainst(target.getArmorType()))
        
        call Effect.createSimpleOnUnit("Abilities\\Spells\\Other\\FrostBolt\\FrostBoltMissile.mdl", target, "chest").destroy()
        if fs != 0 then
            set power = fs.getPower()
            if power < 20 then
                call fs.setPower(power + 1)
            endif
            call fs.refreshDuration()
        else
            call ashbringer_frostshock_buff.apply(tower, target, 1)
        endif
    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 mod = Modifier.create()
        
        set ashbringer_frostbrand_buff = BuffType.createAuraEffectType(true)
        call ashbringer_frostbrand_buff.setBuffIcon('@@0@@')
        call mod.addModification(MOD_TRIGGER_CHANCES, 0.15, 0.006)
        call ashbringer_frostbrand_buff.setBuffModifier(mod)
        call ashbringer_frostbrand_buff.addEventOnDamage(EventHandler.ashbringer_flametongue_ondamage, 0.15, 0.006)
        
        set mod = Modifier.create() 
        set ashbringer_frostshock_buff = BuffType.create(2, 0, false)
        call ashbringer_frostshock_buff.setBuffIcon('@@1@@')
        call mod.addModification(MOD_MOVESPEED, 0, -0.02)
        call ashbringer_frostshock_buff.setBuffModifier(mod)
    endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

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

                    [values] => Array
                        (
                            [AURA_powerAdd] => 1
                            [visible] => true
                            [AURA_auraEffect] => ashbringer_frostbrand_buff
                            [AURA_levelAdd] => 1
                            [AURA_power] => 0
                            [icon] => ReplaceableTextures\CommandButtons\BTNFrostbrandWeapon.blp
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [long_explain] => Increases the trigger chance of towers in |cffFFFF80200|r range by |cffFFFF8015%|r and gives their attacks a |cffFFFF8015%|r chance on hit to deal |cffFFFF8075%|r of attack damage as |cffFF8000Elemental|r damage and slows the target by |cffFFFF802%|r for |cffFFFF802|r seconds, stacking up to |cffFFFF8020|r times.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.6%|r trigger chance|n|cffFFFF80+0.6%|r chance|n|cffFFFF80+3%|r attack damage
                            [AURA_targetSelf] => true
                            [name] => Frostbrand Aura
                            [AURA_level] => 0
                            [short_explain] => Increases the trigger chance of nearby towers and gives their attacks a chance to deal additional |cffFF8000Elemental|r damage and slow.
                            [AURA_auraRange] => 200
                        )

                )

            [3] => Array
                (
                    [name] => Periodic
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [visible] => false
                            [PERIODIC_period] => 0
                            [icon] => 
                            [name] => Attunement
                            [short_explain] => Periodically gain exp based on number of towers affected by Frostbrand.
                            [long_explain] => 
                        )

                )

            [4] => Array
                (
                    [name] => On Tower Creation
                    [code] => set tower.userInt = 0
    set tower.userReal = 0.75 + (tower.getLevel() * 0.03)
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Binf
                    [oeValues] => Array
                        (
                            [Targetattach] => Array
                                (
                                )

                            [Buffubertip] => Increased trigger chance and attacks have a chance to do additional Elemental damage and slow.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Frostbrand Aura
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNFrostbrandWeapon.blp
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => Binf
                    [oeValues] => Array
                        (
                            [Targetattach] => chest
                            [Buffubertip] => Slowed.
                            [TargetArt] => Abilities\Spells\Other\FrostDamage\FrostDamage.mdl
                            [Bufftip] => Frostbrand
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNFrostbrandWeapon.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)