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

            [Art] => ReplaceableTextures\CommandButtons\BTNCleavingAttack.blp
            [dmgplus1] => 899
            [bldtm] => 1
            [goldcost] => 3000
            [sides1] => 1
            [acquire] => 1000
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Fire Star
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
            [uberSplat] => OSMA
            [Missileart] => Abilities\Weapons\LordofFlameMissile\LordofFlameMissile.mdl
            [Missilespeed] => 1000
            [dice1] => 1
            [RngBuff1] => 250
            [modelScale] => 2
            [rangeN1] => 1000
            [atkType1] => pierce
            [cool1] => 2
            [Ubertip] => The fire star, a war machine created by the mightiest fire lords to defend the old palace.
            [scaleBull] => 0
            [abilList] => @@0@@
            [moveHeight] => 115
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

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

            [abil_factor] => 0.12643
            [author] => cedi
            [alpha] => 255
            [authorDisplay] => cedi
            [version] => 1.0
            [element] => fire
            [rarity] => unique
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 4.64635
                    [y] => -2.24669
                    [z] => 108.8
                    [scale] => 0.3
                    [rot] => 0
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 2.84098
                    [y] => -4.27918
                    [z] => 108.8
                    [scale] => 0.3
                    [rot] => 0
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 6.57357
                    [y] => 0.698027
                    [z] => 108.8
                    [scale] => 0.3
                    [rot] => 0.785398
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -0.78
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 1.20526
                    [y] => 5.01809
                    [z] => 108.8
                    [scale] => 0.3
                    [rot] => 2.3562
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -0.78
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 4.19179
                    [y] => -3.27068
                    [z] => 108.8
                    [scale] => 0.3
                    [rot] => 0.785398
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -2.34
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -3.59151
                    [y] => -3.60777
                    [z] => 115.2
                    [scale] => 0.3
                    [rot] => 0
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -3.12
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => 6.82401
                    [y] => 3.49205
                    [z] => 108.8
                    [scale] => 0.3
                    [rot] => 3.14159
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => 6.04763
                    [y] => -2.81071
                    [z] => 108.8
                    [scale] => 0.3
                    [rot] => 1.5708
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => -0.0115944
                    [y] => 0.826376
                    [z] => 108.8
                    [scale] => 0.3
                    [rot] => 4.71239
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -1.56
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 6.51439
                    [y] => 2.6761
                    [z] => 115.2
                    [scale] => 0.3
                    [rot] => 2.3562
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -2.34
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => 1.9573
                    [y] => 2.98338
                    [z] => 115.2
                    [scale] => 0.3
                    [rot] => 3.92699
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -2.34
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => 1.09175
                    [y] => -1.3726
                    [z] => 115.2
                    [scale] => 0.3
                    [rot] => 5.49779
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -2.34
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => 3.77557
                    [y] => -4.18797
                    [z] => 108.8
                    [scale] => 0.3
                    [rot] => 5.49779
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -0.78
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => -2.75638
                    [y] => 0.416887
                    [z] => 108.8
                    [scale] => 0.3
                    [rot] => 3.92699
                    [file] => Doodads\Ashenvale\Props\Obelisk\Obelisk2.mdl
                    [red] => 255
                    [green] => 155
                    [blue] => 155
                    [alpha] => 255
                    [pitch] => -0.78
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        ProjectileType PT
        BuffType BT
    endglobals
    
    function refresh takes Buff B returns nothing
        set B.userReal = B.userReal + 0.05 + 0.002 * B.getCaster().getLevel()
    endfunction
    
    function periodic takes Buff B returns nothing
        local Tower T = B.getCaster()

        call T.doAttackDamage( B.getBuffedUnit(), T.getCurrentAttackDamageWithBonus() * B.userReal, T.calcAttackMulticrit(0,0,0))
    endfunction
    
    function Hit takes Projectile p, Unit t returns nothing
        local Tower T = p.getCaster()
        local Buff B
        local integer i
        set B = t.getBuffOfType( BT )
        if ( B != 0 ) then
            set i = B.getPower() + 1
            set B = BT.applyCustomPower( T, t, 1, i )
        else
            set i = 0
            set B = BT.applyCustomPower( T, t, 1, i )
            set B.userReal = 1.00 + 0.04 * T.getLevel()
        endif
        call T.doAttackDamage( t, T.getCurrentAttackDamageWithBonus(), T.calcAttackMulticrit(0,0,0))
    endfunction
    
    //Do not remove or rename this function!
    //Put your initialization tasks here, this function will be called on map init
    private function init takes nothing returns nothing
        local Modifier m = Modifier.create()
        set PT = ProjectileType.create( "Abilities\\Weapons\\LordofFlameMissile\\LordofFlameMissile.mdl", 7.00, 1000.00 )
        call PT.enableHoming( Hit, 0.00 )
        
        set BT = BuffType.create( 2.5, 0.00, false )
        call BT.setBuffIcon( '@@1@@' )
        call m.addModification( MOD_MOVESPEED, -0.05, -0.01 )
        call BT.setBuffModifier( m )
        call BT.setEventOnRefresh( refresh )
        call BT.addPeriodicEvent( periodic, 2.00 )
	endfunction
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNWallOfFire.blp
                            [name] => Burn!
                            [short_explain] => Missiles ignite hit unit.
                            [long_explain] => When this tower damages a creep it will ignite and take the towers damage as attack damage every |cffFFFF802|r seconds. The buff slows movement speed by |cffFFFF805%|r, lasts |cffFFFF802.5|r seconds and stacks. Each stack increases the damage by |cffFFFF805%|r and the slow by |cffFFFF801%|r.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+4%|r initial damage|n|cffFFFF80+0.2%|r damage per stack
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => local Buff B
    local integer i
    set B = Event.getTarget().getBuffOfType( BT )
    if ( B != 0 ) then
        set i = B.getPower() + 1
        set B = BT.applyCustomPower( tower, Event.getTarget(), 1, i )
    else
        set i = 0
        set B = BT.applyCustomPower( tower, Event.getTarget(), 1, i )
        set B.userReal = 1.00 + 0.04 * tower.getLevel()
    endif
    
    if tower.calcChance( 0.125 + tower.getLevel() * 0.005 ) then
        //Double the trouble
        call Projectile.createFromUnitToUnit( PT, tower, 1.00, 1, tower, Event.getTarget(), true, false, false )
    endif
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.00
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNFlare.blp
                            [name] => Double the Trouble
                            [short_explain] => Each time the star damages a unit it has a chance to launch an additional missile.
                            [ONDAMAGE_chanceLevelAdd] => 0.00
                            [long_explain] => When this tower damages a creep it has a |cffFFFF8012.5%|r chance to launch an additional projectile that deals the same damage as a normal attack.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.5%|r chance
                        )

                )

        )

    [abilities] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Aroc
                    [oeValues] => Array
                        (
                            [Art] => ReplaceableTextures\CommandButtons\BTNFireBolt.blp
                            [Requires] => Array
                                (
                                )

                            [Missilearc] => 0
                            [DataA1] => 0
                            [Cool1] => 0
                            [Area1] => 1000
                            [DataC1] => 12
                            [DataB1] => 0
                            [Name] => Burning Barrage
                            [Ubertip] => Attacks up to |cffFFFF8014|r targets at once.
                            [Missilespeed] => 1000
                            [Missileart] => Abilities\Weapons\LordofFlameMissile\LordofFlameMissile.mdl
                            [Tip] => Burning Barrage
                            [Unubertip] => Attacks up to |cffFFFF8014|r targets at once.
                            [targs1] => enemies
                        )

                )

        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BHfs
                    [oeValues] => Array
                        (
                            [Targetattach] => origin
                            [EditorName] => Burn!
                            [Buffubertip] => This unit burns! It is slowed and takes damage over time.
                            [TargetArt] => Environment\LargeBuildingFire\LargeBuildingFire1.mdl
                            [Targetattachcount] => 1
                            [Bufftip] => Burn!
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNWallOfFire.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)