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

            [Art] => ReplaceableTextures\CommandButtons\BTNBlizzard.blp
            [dmgplus1] => 105
            [bldtm] => 1
            [goldcost] => 200
            [sides1] => 1
            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Shardburst Generator
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => .mdl
            [uberSplat] => YTDN
            [Missileart] => Abilities\Weapons\LichMissile\LichMissile.mdl
            [Missilespeed] => 1300
            [dice1] => 1
            [RngBuff1] => 250
            [modelScale] => 0.1
            [rangeN1] => 900
            [atkType1] => magic
            [cool1] => 1.3
            [Ubertip] => Suppress the enemy with barrages of ice.
            [scaleBull] => 0
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

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

            [abil_factor] => 0.4
            [author] => Ashbringer
            [alpha] => 0
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => ice
            [rarity] => uncommon
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 0.287265
                    [y] => 0.491576
                    [z] => 32
                    [scale] => 0.6
                    [rot] => 4.71239
                    [file] => Abilities\Weapons\ZigguratFrostMissile\ZigguratFrostMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -4.71
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 0.917425
                    [y] => 4.10829
                    [z] => 12.8
                    [scale] => 0.8
                    [rot] => 0
                    [file] => Abilities\Spells\Items\AIob\AIobTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => 1.02274
                    [y] => 3.20333
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Props\FountainRuined\FountainRuined.mdl
                    [red] => 125
                    [green] => 165
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => -0.0133527
                    [y] => 0.972618
                    [z] => 0
                    [scale] => 0.23
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Props\Ruins_NagaCircle\Ruins_NagaCircle.mdl
                    [red] => 55
                    [green] => 75
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -0.435861
                    [y] => -13.021
                    [z] => -12.8
                    [scale] => 0.1
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 125
                    [green] => 165
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => 0.357966
                    [y] => 15.7318
                    [z] => -12.8
                    [scale] => 0.1
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 125
                    [green] => 165
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -0.148344
                    [y] => 0.199712
                    [z] => 0
                    [scale] => 0.11
                    [rot] => 2.3562
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 75
                    [green] => 115
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => -0.0763133
                    [y] => 0.846242
                    [z] => 0
                    [scale] => 0.11
                    [rot] => 0.785398
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 75
                    [green] => 115
                    [blue] => 225
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => -0.297862
                    [y] => -8.16974
                    [z] => 6.4
                    [scale] => 0.1
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 75
                    [green] => 115
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => 0.387533
                    [y] => 10.4651
                    [z] => 6.4
                    [scale] => 0.1
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 75
                    [green] => 115
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => 10.3624
                    [y] => 0.836575
                    [z] => 6.4
                    [scale] => 0.1
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 75
                    [green] => 115
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => -10.9145
                    [y] => 1.18478
                    [z] => 6.4
                    [scale] => 0.1
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\Archway1\Archway1.mdl
                    [red] => 75
                    [green] => 115
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -1.57
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => call ashbringer_iceshard_cast(tower, Event.getTarget(), 225 + (tower.getLevel() * 9), 4, 6)
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNFreezingBreath.blp
                            [name] => Shard Burst
                            [short_explain] => Attacks have a chance to fire a cone of piercing shards that deal spell damage.
                            [ONATTACK_chance] => 0.1
                            [ONATTACK_chanceLevelAdd] => 0.004
                            [long_explain] => Attacks have a |cffffff8010%|r chance to launch |cffffff804|r to |cffffff806|r shards of ice in a cone. Each shard deals |cffffff80225|r spell damage and pierces enemies.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r chance|n|cffFFFF80+9|r damage
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        ProjectileType ashbringer_iceshard_missile
    endglobals
    
    //@export
    function ashbringer_iceshard_cast takes Tower tower, Creep target, real damage, integer min, integer max returns nothing
        local integer count = 0
        local integer spawn = GetRandomInt(min, max)
        local real tower_x = tower.getX()
        local real tower_y = tower.getY()
        local real angle = (bj_RADTODEG * Atan2(target.getY() - tower_y, target.getX() - tower_x))
        local real side = spawn*5
        local Projectile p
        
        loop
            exitwhen count==spawn
            set p = Projectile.create(ashbringer_iceshard_missile, tower, 0, 0, tower_x, tower_y, 30, angle-side+(count*10))
            call p.setScale(0.65)
            set p.userReal = damage
            set count = count + 1
        endloop
    endfunction
    
    function ashbringer_iceshard_hit takes Projectile p, Unit target returns nothing
        local Tower tower = p.getCaster()
        
        call tower.doSpellDamage(target, p.userReal, tower.calcSpellCritNoBonus())
    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
        set ashbringer_iceshard_missile = ProjectileType.create("Abilities\\Weapons\\LichMissile\\LichMissile.mdl", 0.7, 1500)
        call ashbringer_iceshard_missile.enableCollision(ProjectileTargetEvent.ashbringer_iceshard_hit, 40, TARGET_CREEPS, false)
    endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)