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

            [Art] => ReplaceableTextures\CommandButtons\BTNFireForTheCannon.blp
            [dmgplus1] => 0
            [bldtm] => 1
            [goldcost] => 3500
            [sides1] => 518
            [Missilearc] => 0.3
            [manaN] => 50
            [acquire] => 800
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Inflamed Stone Pillars
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => Doodads\Outland\Rocks\Outland_Spires\Outland_Spires6.mdl
            [uberSplat] => OSMA
            [Missileart] => Abilities\Weapons\FireBallMissile\FireBallMissile.mdl
            [Missilespeed] => 2000
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 7.5
            [modelScale] => 0.3
            [rangeN1] => 850
            [atkType1] => magic
            [cool1] => 1
            [Ubertip] => Advanced tower that will critical strike if it is has enough mana.
            [abilList] => Array
                (
                )

            [moveHeight] => 10
            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00+2% |rmana regen/lvl
            [abil_factor] => 0.07
            [author] => SirCoqaLot.
            [alpha] => 255
            [authorDisplay] => SirCoqaLot.
            [version] => 1.0
            [element] => fire
            [rarity] => rare
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 8.24751
                    [y] => -4.97861
                    [z] => -51.2
                    [scale] => 0.55
                    [rot] => 1.6922
                    [file] => Abilities\Spells\Other\Doom\DoomTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -30.3836
                    [y] => 23.2199
                    [z] => 6.4
                    [scale] => 0.125
                    [rot] => 5.44417
                    [file] => Doodads\Outland\Rocks\Outland_Spires\Outland_Spires8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 3.83658
                    [y] => -27.6788
                    [z] => 0
                    [scale] => 0.175
                    [rot] => 5.89571
                    [file] => Doodads\Outland\Rocks\Outland_Spires\Outland_Spires8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 41.388
                    [y] => -29.6286
                    [z] => 6.4
                    [scale] => 0.125
                    [rot] => 1.71415
                    [file] => Doodads\Outland\Rocks\Outland_Spires\Outland_Spires8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => 4.81614
                    [y] => -31.4187
                    [z] => 64
                    [scale] => 0.85
                    [rot] => 3.08923
                    [file] => Abilities\Spells\Items\AIfb\AIfbTarget.mdl
                    [red] => 255
                    [green] => 70
                    [blue] => 50
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => 31.4904
                    [y] => 30.5563
                    [z] => 0
                    [scale] => 0.2
                    [rot] => 4.56816
                    [file] => Doodads\Outland\Rocks\Outland_Spires\Outland_Spires8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [6] => Array
                (
                    [x] => 4.98948
                    [y] => 2.54215
                    [z] => 89.6
                    [scale] => 2
                    [rot] => 3.82227
                    [file] => Abilities\Spells\Items\AIfb\AIfbTarget.mdl
                    [red] => 255
                    [green] => 70
                    [blue] => 50
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [7] => Array
                (
                    [x] => -48.3672
                    [y] => 10.0842
                    [z] => 0
                    [scale] => 0.1
                    [rot] => 5.89784
                    [file] => Doodads\Outland\Rocks\Outland_Spires\Outland_Spires8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [8] => Array
                (
                    [x] => -16.8913
                    [y] => -37.1305
                    [z] => 0
                    [scale] => 0.125
                    [rot] => 4.20343
                    [file] => Doodads\Outland\Rocks\Outland_Spires\Outland_Spires8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [9] => Array
                (
                    [x] => 27.512
                    [y] => -46.1838
                    [z] => 0
                    [scale] => 0.1
                    [rot] => 4.3894
                    [file] => Doodads\Outland\Rocks\Outland_Spires\Outland_Spires8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [10] => Array
                (
                    [x] => -44.6851
                    [y] => -37.426
                    [z] => 0
                    [scale] => 0.125
                    [rot] => 0.409203
                    [file] => Doodads\Outland\Rocks\Outland_Spires\Outland_Spires8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [11] => Array
                (
                    [x] => -42.114
                    [y] => -19.8587
                    [z] => 76.8
                    [scale] => 1
                    [rot] => 5.75959
                    [file] => Abilities\Spells\Items\AIfb\AIfbTarget.mdl
                    [red] => 255
                    [green] => 70
                    [blue] => 50
                    [alpha] => 255
                    [pitch] => -0.2
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [12] => Array
                (
                    [x] => 0.682291
                    [y] => -35.0513
                    [z] => -25.6
                    [scale] => 0.3
                    [rot] => 2.18166
                    [file] => Abilities\Spells\Other\Doom\DoomTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [13] => Array
                (
                    [x] => -26.2106
                    [y] => -15.6287
                    [z] => -25.6
                    [scale] => 0.35
                    [rot] => 5.55015
                    [file] => Abilities\Spells\Other\Doom\DoomTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [14] => Array
                (
                    [x] => 4.91723
                    [y] => -54.1491
                    [z] => 6.4
                    [scale] => 0.075
                    [rot] => 2.47523
                    [file] => Doodads\Outland\Rocks\Outland_Spires\Outland_Spires8.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_MANA_REGEN_PERC
                    [base] => 0
                    [add] => 0.02
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local real  mana = GetUnitState(tower.getUnit(),UNIT_STATE_MANA)
    call addAttackStats(tower)
    if mana >= (20 - 0.2*tower.getLevel()) then
        call tower.subtractMana(mana, false) 
        call tower.addCustomAttackCrit((mana - (20 - 0.2*tower.getLevel())) *0.08+tower.getProp_AtkCritDamage())
    endif
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNFlare.blp
                            [name] => Spellfire Projectiles
                            [short_explain] => On attack this tower uses all of its mana to let the next attack crit.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                            [long_explain] => If this tower has at least |cffffff8020|r mana when it attacks, it will pay all its mana to proc a critical strike. |cffffff8020|r Mana is used to grant the critical strike and every further point of mana spent grants |cffffff8010%|r more critical damage to that attack. |n|n|cffFF8000Level Bonus:|r|n|cffffff80-.3|r Mana needed
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals

	 //@import
	BuffType spellFlameDamage 
	//@import
	BuffType spellFlameCritDamage
	//@import 
	BuffType spellFlameCritChance

    endglobals
    
    //@import
    function addAttackStats takes Tower tower returns nothing
    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
    endfunction
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNInnerFireOn.blp
                            [name] => Spellfire
                            [short_explain] => This tower treats all spell modifiers as attack bonuses
                            [long_explain] => This tower treats all spell modifiers as attack bonuses, with an |cffffff80100%|r bonus gain of stated effect. |n|n|cffFF8000Level Bonus:|r|n|cffffff80+4%|r bonus gain
                        )

                )

            [2] => Array
                (
                    [name] => On Tower Creation
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => spellFlameDamage
                )

            [1] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => spellFlameCritDamage
                )

            [2] => Array
                (
                    [export] => false
                    [category] => global
                    [typ] => BuffType
                    [name] => spellFlameCritChance
                )

        )

)