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

            [Art] => ReplaceableTextures\CommandButtons\BTN_StarBlast.blp
            [dmgplus1] => 4522
            [bldtm] => 1
            [goldcost] => 3900
            [unitSound] => ArcaneSanctum
            [sides1] => 1
            [manaN] => 100
            [launchZ] => 205
            [acquire] => 1000
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Nether Star
            [red] => 50
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => .mdl
            [uberSplat] => YTDG
            [Missilespeed] => 1600
            [Missileart] => war3mapImported\DemonHunterMissilePink.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 1
            [green] => 50
            [modelScale] => 0.1
            [rangeN1] => 1000
            [atkType1] => normal
            [cool1] => 1.9
            [Ubertip] => There are places in the Twisting Nether where Order converges.
            [blue] => 50
            [scaleBull] => 0
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

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

            [abil_factor] => 0.52
            [author] => Ashbringer
            [alpha] => 0
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [element] => arcane
            [rarity] => unique
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -0.221124
                    [y] => 0.41777
                    [z] => 0.00000858307
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway45\Archway45.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [1] => Array
                (
                    [x] => 0.139267
                    [y] => 0.147415
                    [z] => 0.00000858307
                    [scale] => 0.15
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\Archway45\Archway45.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [2] => Array
                (
                    [x] => -0.0160673
                    [y] => -0.800554
                    [z] => 0
                    [scale] => 0.275
                    [rot] => 4.71239
                    [file] => Doodads\Ruins\Props\Ruins_NagaCircle\Ruins_NagaCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [3] => Array
                (
                    [x] => -0.221124
                    [y] => 0.41777
                    [z] => 44.8
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway45\Archway45.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [4] => Array
                (
                    [x] => -13.3108
                    [y] => 19.8441
                    [z] => -12.8
                    [scale] => 1.25
                    [rot] => 5.22026
                    [file] => Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
                    [red] => 255
                    [green] => 85
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [5] => Array
                (
                    [x] => -0.0497227
                    [y] => 0.00499874
                    [z] => 25.6
                    [scale] => 4.75
                    [rot] => 1.48353
                    [file] => Abilities\Spells\Human\ManaFlare\ManaFlareTarget.mdl
                    [red] => 155
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [6] => Array
                (
                    [x] => -1.46181
                    [y] => 37.0026
                    [z] => 179.2
                    [scale] => 0.95
                    [rot] => 0.890118
                    [file] => Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
                    [red] => 255
                    [green] => 85
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -3.14
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [7] => Array
                (
                    [x] => -0.0700235
                    [y] => 0.1257
                    [z] => 128
                    [scale] => 1.25
                    [rot] => 3.37147
                    [file] => Abilities\Spells\Undead\Possession\PossessionCaster.mdl
                    [red] => 255
                    [green] => 45
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [8] => Array
                (
                    [x] => 0.139267
                    [y] => 0.147415
                    [z] => 44.8
                    [scale] => 0.15
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\Archway45\Archway45.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [9] => Array
                (
                    [x] => -0.0589969
                    [y] => 0.0205059
                    [z] => 211.2
                    [scale] => 2.3
                    [rot] => 3.66519
                    [file] => Abilities\Weapons\SpiritOfVengeanceMissile\SpiritOfVengeanceMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [10] => Array
                (
                    [x] => 0.102069
                    [y] => -0.053165
                    [z] => 89.6
                    [scale] => 3.55
                    [rot] => 1.48353
                    [file] => Abilities\Spells\Human\ManaFlare\ManaFlareTarget.mdl
                    [red] => 155
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [11] => Array
                (
                    [x] => 0.139267
                    [y] => 0.147415
                    [z] => 89.6
                    [scale] => 0.15
                    [rot] => 0
                    [file] => Doodads\Cityscape\Structures\Archway45\Archway45.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [12] => Array
                (
                    [x] => -0.221124
                    [y] => 0.41777
                    [z] => 89.6
                    [scale] => 0.15
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\Archway45\Archway45.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [13] => Array
                (
                    [x] => -0.332974
                    [y] => -15.6822
                    [z] => 32
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [14] => Array
                (
                    [x] => -0.0291753
                    [y] => 0.110817
                    [z] => 134.4
                    [scale] => 3.55
                    [rot] => 1.48353
                    [file] => Abilities\Spells\Human\ManaFlare\ManaFlareTarget.mdl
                    [red] => 155
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [15] => Array
                (
                    [x] => 0.0233199
                    [y] => 0.0555482
                    [z] => 57.6
                    [scale] => 1.45
                    [rot] => 6.10865
                    [file] => Abilities\Spells\Undead\Possession\PossessionCaster.mdl
                    [red] => 255
                    [green] => 45
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [16] => Array
                (
                    [x] => 0.0457264
                    [y] => 0.144424
                    [z] => 211.2
                    [scale] => 1.45
                    [rot] => 4.7244
                    [file] => Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
                    [red] => 255
                    [green] => 55
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [17] => Array
                (
                    [x] => -0.020854
                    [y] => -0.159624
                    [z] => 211.2
                    [scale] => 1.3
                    [rot] => 1.5708
                    [file] => Abilities\Weapons\BoatMissile\BoatMissile.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 1
                    [alpha] => 255
                    [pitch] => -4.71
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [18] => Array
                (
                    [x] => 21.8432
                    [y] => -0.636838
                    [z] => -19.2
                    [scale] => 0.18
                    [rot] => 3.14159
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [19] => Array
                (
                    [x] => -21.9913
                    [y] => 0.0339518
                    [z] => -19.2
                    [scale] => 0.18
                    [rot] => 0.000000238419
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [20] => Array
                (
                    [x] => -0.438993
                    [y] => -15.5701
                    [z] => 121.6
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [21] => Array
                (
                    [x] => -0.440196
                    [y] => -15.4896
                    [z] => 76.8
                    [scale] => 0.12
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [22] => Array
                (
                    [x] => 0.136861
                    [y] => 16.3008
                    [z] => 121.6
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [23] => Array
                (
                    [x] => 0.138064
                    [y] => 16.2203
                    [z] => 76.8
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [24] => Array
                (
                    [x] => 0.244083
                    [y] => 16.1082
                    [z] => 32
                    [scale] => 0.12
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 25
                    [green] => 25
                    [blue] => 115
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [25] => Array
                (
                    [x] => 0.147638
                    [y] => 0.159221
                    [z] => 38.4
                    [scale] => 1.75
                    [rot] => 2.42601
                    [file] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [26] => Array
                (
                    [x] => -0.133307
                    [y] => 0.0220509
                    [z] => 70.4
                    [scale] => 1.2
                    [rot] => 2.42601
                    [file] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [27] => Array
                (
                    [x] => -0.0189694
                    [y] => 0.0653747
                    [z] => 115.2
                    [scale] => 1.2
                    [rot] => 2.42601
                    [file] => Abilities\Spells\Other\GeneralAuraTarget\GeneralAuraTarget.mdl
                    [red] => 1
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

            [28] => Array
                (
                    [x] => -0.0222628
                    [y] => 0.427089
                    [z] => 211.2
                    [scale] => 2.1
                    [rot] => 4.71239
                    [file] => Abilities\Weapons\FaerieDragonMissile\FaerieDragonMissile.mdl
                    [red] => 255
                    [green] => 1
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => -4.71
                    [advanced] => false
                    [animation] => Array
                        (
                        )

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

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        ProjectileType ashbringer_pulsar_projectile
        BuffType ashbringer_netherburn_buff
    endglobals
    
    struct pulsars
        Projectile array proj[3]
        real array distance[3]
        
        method setup takes Tower tower returns nothing
            local real turning_rate
            local integer count = 3
            local real distance
            local real speed
            local real angle
            local EventHandler ev = ashbringer_pulsar_ondamage
            
            loop
                exitwhen count == 0
                set count = count - 1
                set speed = 325 + (count * 250)
                set distance = 400 + (count * 200)
                set turning_rate = ((speed / distance) * bj_RADTODEG) / 25
                if ModuloReal(count, 2) == 1 then
                    set turning_rate = -turning_rate
                    set angle = 90
                else
                    set angle = 270
                endif
                set .proj[count] = Projectile.create(ashbringer_pulsar_projectile, tower, 0, 0, tower.getX()+distance, tower.getY(), 205, 270)
                set .proj[count].rotation = -turning_rate
                set .proj[count].speed = speed
                set .proj[count].direction = angle
                call .proj[count].color(255, 1, 255, 255)
                call .proj[count].setScale(3)
                call .proj[count].addAbility('@@0@@')
                call .proj[count].setDamageEvent(ev)
                set .proj[count].userInt = tower.getUID()
                
                set .distance[count] = distance
            endloop
        endmethod
        
        method cleanup takes nothing returns nothing
            local integer count = 3
            loop
                exitwhen count == 0
                set count = count - 1
                
                if .proj[count] != 0 then
                    call .proj[count].destroy()
                endif
            endloop
            
            call .destroy()
        endmethod
    endstruct
    
    //@export
    function ashbringer_pulsar_ondamage takes Projectile p returns nothing
        local Unit target = Event.getTarget()
        local Tower tower = p.getCaster()
        local real damage = tower.getCurrentAttackDamageWithBonus() * (0.15 + (tower.getLevel() * 0.006))
        
        call Lightning.createFromPointToUnit("PBEAM", p.x, p.y, p.z, target).setLifetime(0.05)
        call Effect.createSimpleOnUnit("Abilities\\Weapons\\BlackKeeperMissile\\BlackKeeperMissile.mdl", target, "chest").destroy()
        call tower.doAttackDamage(target, damage, tower.calcAttackMulticrit(0, 0, 0))
        call ashbringer_netherburn_buff.apply(tower, target, 0)
    endfunction
    
    function ashbringer_pulsar_update takes Projectile p returns nothing
        local Tower tower = p.getCaster()
        
        if tower.getUID() == p.userInt then
            set p.remainingLifetime = 5
        else
        endif
    endfunction
    
    function ashbringer_netherburn_periodic takes Buff b returns nothing
        local Tower tower = b.getCaster()
        local Unit target = b.getBuffedUnit()
        
        call tower.doCustomAttackDamage(target, tower.getCurrentAttackDamageWithBonus() * (0.15 + (tower.getLevel() * 0.006)), tower.calcAttackMulticrit(0,0,0), AttackType.ESSENCE)
        call target.subtractManaPerc(0.02, true)
        call tower.addManaPerc(0.01)
    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_pulsar_projectile = ProjectileType.create("Abilities\\Weapons\\VengeanceMissile\\VengeanceMissile.mdl", 10, 300)
        call ashbringer_pulsar_projectile.enablePeriodic(ashbringer_pulsar_update, 4)
        
        set ashbringer_netherburn_buff = BuffType.create(5, 0, false)
        call ashbringer_netherburn_buff.setBuffIcon('@@1@@')
        call ashbringer_netherburn_buff.addPeriodicEvent(ashbringer_netherburn_periodic, 1)
    endfunction
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTN_StarBlast.blp
                            [name] => Arcanic Pulsars
                            [short_explain] => Three pulsars orbit the tower at different distances, dealing damage to nearby enemies.
                            [long_explain] => Three pulsars orbit the tower at |cffFFFF80400|r, |cffFFFF80600|r and |cffFFFF80800|r radius respectively, each dealing |cffFFFF8015%|r of attack damage to a nearby enemy every second.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF800.6%|r of attack damage
                        )

                )

            [1] => Array
                (
                    [name] => On Tower Destruction
                    [code] => local pulsars p = tower.userInt
    
    call p.cleanup()
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Damage
                    [code] => call ashbringer_netherburn_buff.apply(tower, Event.getTarget(), 0)
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNManaBurn.blp
                            [name] => Nether Burn
                            [short_explain] => Attacks and abilities apply a debuff that deals |cff80FF00Essence|r damage over time and drains mana.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => Attacks and abilities apply Nether Burn, a debuff that deals |cffFFFF8015%|r of attack damage as |cff80FF00Essence|r damage per second. Every time Nether Burn deals damage, the target loses |cffFFFF802%|r of its maximum mana and the Nether Star gains |cffFFFF801%|r of its maximum mana. Lasts |cffFFFF805|r seconds and does not stack.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF800.6%|r of attack damage
                        )

                )

            [3] => Array
                (
                    [name] => Periodic
                    [code] => local pulsars p = tower.userInt
    local real distance
    local integer count = 0
    local real tower_x = tower.getX()
    local real tower_y = tower.getY()
    
    loop
        exitwhen count==3
        set distance = DistanceBetweenPoints(Location(tower_x, tower_y), Location(p.proj[count].x, p.proj[count].y))
        if distance > p.distance[count]+50 or distance < p.distance[count]-50 then
            set p.proj[count].x = tower_x + p.distance[count]
            set p.proj[count].y = tower_y
            
            if ModuloReal(count, 2) == 1 then
                set p.proj[count].direction = 90
            else
                set p.proj[count].direction = 270
            endif
        endif
        set count = count + 1
    endloop
                    [values] => Array
                        (
                            [visible] => false
                            [PERIODIC_period] => 60
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [4] => Array
                (
                    [name] => Autocast
                    [code] => local pulsars p = tower.userInt
    local real prev_x = tower.getX()
    local real prev_y = tower.getY()
    local real prev_z = 220
    local real next_x
    local real next_y
    local real next_z
    local integer count = 0
    local real range = 500 + (tower.getLevel() * 10)
    local real distance
    local Iterate i
    local Unit next
    local real damage = tower.getCurrentAttackDamageWithBonus() * (2 + (tower.getLevel() * 0.04))
    local real crit
    local integer uid = tower.getUID()
    local real divided
    
    loop
        exitwhen count==3
        set next_x = p.proj[count].x
        set next_y = p.proj[count].y
        set next_z = p.proj[count].z
        set distance = DistanceBetweenPoints(Location(prev_x, prev_y), Location(next_x, next_y))
        if (distance < range or count == 0) and tower.getUID() == uid then
            call Lightning.createFromPointToPoint("PZAP", prev_x, prev_y, prev_z, next_x, next_y, next_z).setLifetime(0.1)
            call Effect.createScaled("war3mapImported\\ArcaneExplosion.mdx", next_x, next_y, next_z, 270, (1000+range)/1000).destroy()
            set i = Iterate.overUnitsInRange(tower, TARGET_TYPE_CREEPS, next_x, next_y, range)
            if i.count() > 0 then
                set divided = damage / i.count()
                set crit = tower.calcAttackMulticrit(0, 0, 0)
                loop
                    set next = i.next()
                    exitwhen next == 0
                    call tower.doAttackDamage(next, divided, crit)
                    call ashbringer_netherburn_buff.apply(tower, next, 0)
                endloop
            endif
            call TriggerSleepAction(0.1)
            set prev_x = p.proj[count].x
            set prev_y = p.proj[count].y
            set prev_z = p.proj[count].z
            set count = count + 1
        else
            set count = 3
        endif
    endloop
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 4
                            [AUTOCAST_autoRange] => 1000
                            [AUTOCAST_manacost] => 50
                            [icon] => ReplaceableTextures\CommandButtons\BTNManaFlare.blp
                            [AUTOCAST_range] => 1000
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 0
                            [caster_art] => Abilities\Spells\Items\AIre\AIreTarget.mdl
                            [long_explain] => Channel energy into the nearest pulsar, causing an explosion that deals |cffFFFF80200%|r of attack damage divided evenly between all enemies in |cffFFFF80500|r range of the pulsar. This effect can chain to further pulsars if they are within the explosion radius.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF804%|r of attack damage|n|cffFFFF80+10|r range
                            [target_art] => 
                            [AUTOCAST_autocastType] => AC_TYPE_ALWAYS_IMMEDIATE
                            [AUTOCAST_buffType] => 0
                            [AUTOCAST_isExtended] => false
                            [name] => Orbital Augury
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Causes the nearest pulsar to deal damage and burn mana in an area around it. This effect can chain to further pulsars.
                        )

                )

            [5] => Array
                (
                    [name] => On Tower Creation
                    [code] => local pulsars p = pulsars.create()
    
    call p.setup(tower)
    set tower.userInt = p
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Apxf
                    [oeValues] => Array
                        (
                            [Art] => ReplaceableTextures\CommandButtons\BTN_StarBlast.blp
                            [HeroDur1] => 0.01
                            [DataA3] => 1
                            [DataA1] => 1
                            [Area2] => 350
                            [BuffID1] => @@2@@
                            [Cool1] => 1
                            [Area1] => 500
                            [DataA2] => 1
                            [DataB1] => 0
                            [Area3] => 350
                            [Name] => Pulsar
                            [Dur1] => 0.01
                            [Ubertip] => Blue
                            [Missileart] => Array
                                (
                                )

                            [Missilespeed] => 5000
                            [Tip] => Blue
                        )

                )

        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Targetattach] => chest
                            [Buffubertip] => Taking damage over time and losing mana.
                            [TargetArt] => war3mapImported\ImmolationArcaneDamage.mdx
                            [Bufftip] => Nether Burn
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNManaBurn.blp
                        )

                )

            [1] => Array
                (
                    [id] => @@2@@
                    [derivedFrom] => BHab
                    [oeValues] => Array
                        (
                            [Targetattach] => Array
                                (
                                )

                            [Buffubertip] => Array
                                (
                                )

                            [TargetArt] => Array
                                (
                                )

                            [Bufftip] => Pulsar
                            [Buffart] => ReplaceableTextures\CommandButtons\BTN_StarBlast.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

    [lightning] => Array
        (
        )

)