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

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

            [Upgrade] => Array
                (
                )

            [Name] => Windfury Totem
            [weapTp1] => missile
            [file] => .mdl
            [MissileHoming] => 1
            [Missilespeed] => 1600
            [Missileart] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [modelScale] => 0.1
            [rangeN1] => 800
            [atkType1] => siege
            [cool1] => 3
            [Ubertip] => Warriors who have known this power inevitably feel powerless without it.
            [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] => storm
            [rarity] => unique
        )

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

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

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

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

            [2] => Array
                (
                    [x] => -0.00782768
                    [y] => 0.00439151
                    [z] => 44.8
                    [scale] => 1.2
                    [rot] => 4.66003
                    [file] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => -0.0318451
                    [y] => 0.0217653
                    [z] => 57.6
                    [scale] => 0.95
                    [rot] => 1.5708
                    [file] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => 0.0670077
                    [y] => -0.00351363
                    [z] => 64
                    [scale] => 1.7
                    [rot] => 1.74533
                    [file] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -3.14
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => -0.0684503
                    [y] => -0.0434653
                    [z] => 102.4
                    [scale] => 1.4
                    [rot] => 4.71239
                    [file] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -3.14
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => 0.0642175
                    [y] => 0.248771
                    [z] => -19.2
                    [scale] => 1.55
                    [rot] => 1.79769
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => -7.40167
                    [y] => -8.29512
                    [z] => 0
                    [scale] => 0.26
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => 8.31036
                    [y] => 6.4525
                    [z] => 0
                    [scale] => 0.26
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

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

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

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

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

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

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

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

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

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

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

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

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

            [15] => Array
                (
                    [x] => -40.0896
                    [y] => -42.6806
                    [z] => -6.4
                    [scale] => 0.37
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => 40.7419
                    [y] => 40.3008
                    [z] => -6.4
                    [scale] => 0.37
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -41.4399
                    [y] => 39.6217
                    [z] => -6.4
                    [scale] => 0.37
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => 42.4104
                    [y] => -40.2429
                    [z] => -6.4
                    [scale] => 0.37
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => -0.0452391
                    [y] => 0.153317
                    [z] => 32
                    [scale] => 1
                    [rot] => 1.79769
                    [file] => war3mapImported\GeneralAuraTargetWhite.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => -0.173762
                    [y] => 41.7693
                    [z] => 160
                    [scale] => 0.75
                    [rot] => 1.5708
                    [file] => Doodads\Cinematic\GlowingRunes\GlowingRunes2.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -4.61
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => 36.2323
                    [y] => -32.9959
                    [z] => 6.4
                    [scale] => 0.6
                    [rot] => 5.49779
                    [file] => Abilities\Spells\Undead\UndeadMine\UndeadMineCircle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => -36.0957
                    [y] => 30.5462
                    [z] => 6.4
                    [scale] => 0.6
                    [rot] => 2.3562
                    [file] => Abilities\Spells\Undead\UndeadMine\UndeadMineCircle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [23] => Array
                (
                    [x] => 31.7723
                    [y] => 36.141
                    [z] => 6.4
                    [scale] => 0.6
                    [rot] => 0.785398
                    [file] => Abilities\Spells\Undead\UndeadMine\UndeadMineCircle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [24] => Array
                (
                    [x] => -31.7697
                    [y] => -36.187
                    [z] => 6.4
                    [scale] => 0.6
                    [rot] => 3.92699
                    [file] => Abilities\Spells\Undead\UndeadMine\UndeadMineCircle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [25] => Array
                (
                    [x] => 0.0990783
                    [y] => 0.488701
                    [z] => 121.6
                    [scale] => 1
                    [rot] => 5.20108
                    [file] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -3.14
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [26] => Array
                (
                    [x] => 0.0751948
                    [y] => 0.147137
                    [z] => 6.4
                    [scale] => 0.5
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [27] => Array
                (
                    [x] => 0.0751948
                    [y] => 0.147137
                    [z] => 76.8
                    [scale] => 0.35
                    [rot] => 3.92699
                    [file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.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.15 + (tower.getLevel() * 0.006)
    set tower.userReal2 = 0.5 + (tower.getLevel() * 0.02)
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType ashbringer_windfury_buff
        ProjectileType ashbringer_windfury_missile
    endglobals
    
    function ashbringer_windfury_ondamage takes Buff b returns nothing
        local Tower caster = b.getCaster()
        local Tower tower = b.getBuffedUnit()
        local Unit target = Event.getTarget()
        local Projectile p = Projectile.createFromUnitToUnit(ashbringer_windfury_missile, tower, 0.0, 0.0, tower, target, true, false, false)
        
        set p.userInt2 = 2
        set p.userInt3 = target.getUID()
        set p.userReal = caster.userReal
        set p.userReal2 = caster.userReal2
    endfunction
    
    function ashbringer_windfury_hit takes Projectile p, Creep target returns nothing
        local Tower tower = p.getCaster()
        local Projectile p2
        
        call tower.doCustomAttackDamage(target, tower.getCurrentAttackDamageWithBonus() * p.userReal2, tower.calcAttackMulticrit(0, 0, 0), AttackType.PHYSICAL)
        
        if p.userInt2>0 and target.getUID()==p.userInt3 then
            if tower.calcChance(p.userReal) then
                set p2 = Projectile.createFromUnitToUnit(ashbringer_windfury_missile, tower, 0.0, 0.0, tower, target, true, false, false)
                set p2.userInt = p.userInt
                set p2.userInt2 = p.userInt2 - 1
                set p2.userInt3 = p.userInt3
                set p.userReal = p.userReal
                set p.userReal2 = p.userReal2
            endif
        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_windfury_buff = BuffType.createAuraEffectType(true)
        call ashbringer_windfury_buff.setBuffIcon('@@0@@')
        call mod.addModification(MOD_ATTACKSPEED, 0.15, 0.006)
        call ashbringer_windfury_buff.setBuffModifier(mod)
        call ashbringer_windfury_buff.addEventOnDamage(EventHandler.ashbringer_windfury_ondamage, 0.15, 0.006)
        
        set ashbringer_windfury_missile = ProjectileType.create("Abilities\\Spells\\Other\\Tornado\\Tornado_Target.mdl", 5.0, 1500)
        call ashbringer_windfury_missile.enableHoming(ProjectileTargetEvent.ashbringer_windfury_hit, 0.0)
    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_windfury_buff
                            [AURA_levelAdd] => 1
                            [AURA_power] => 0
                            [icon] => ReplaceableTextures\CommandButtons\BTNWindfury_Totem_Staff.blp
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [long_explain] => Increases the attack speed of towers in |cffFFFF80200|r range by |cffFFFF8015%|r and gives their attacks a |cffFFFF8015%|r chance on hit to strike the target again with slicing wind, dealing |cffFFFF8050%|r of attack damage as |cffC0C0C0Physical|r damage. This effect can retrigger itself up to |cffFFFF802|r more times.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.6%|r attack speed|n|cffFFFF80+0.6%|r chance|n|cffFFFF80+2%|r attack damage
                            [AURA_targetSelf] => false
                            [name] => Windfury Aura
                            [AURA_level] => 0
                            [short_explain] => Increases the attack speed of nearby towers and gives their attacks a chance to strike again as |cffC0C0C0Physical|r damage.
                            [AURA_auraRange] => 200
                        )

                )

            [3] => Array
                (
                    [name] => On Tower Creation
                    [code] => set tower.userReal = 0.15 + (tower.getLevel() * 0.006)
    set tower.userReal2 = 0.5 + (tower.getLevel() * 0.02)
                    [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 attack speed and chance on attack to attack again.
                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Windfury Aura
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNWindfury_Totem_Staff.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)