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

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

            [Upgrade] => Array
                (
                )

            [Name] => Inflamed Stone Spires
            [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] => 6.25
            [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.08
            [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] => 2.58177
                    [y] => 5.55509
                    [z] => 0
                    [scale] => 0.85
                    [rot] => 3.63029
                    [file] => Doodads\Barrens\Props\Barrens_Bones\Barrens_Bones0.mdl
                    [red] => 255
                    [green] => 170
                    [blue] => 120
                    [alpha] => 255
                    [pitch] => 0
                    [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
                )

        )

    [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 |cffffff809%|r more critical damage to that attack. |n|n|cffFF8000Level Bonus:|r|n|cffffff80-.25|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

    //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 |cffffff8090%|r bonus gain of stated effect. |n|n|cffFF8000Level Bonus:|r|n|cffffff80+3.6%|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
                )

        )

)