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

            [Art] => ReplaceableTextures\CommandButtons\BTNChainLightning.blp
            [dmgplus1] => 0
            [bldtm] => 1
            [goldcost] => 1025
            [sides1] => 1
            [acquire] => 980
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Stormcloud Generator
            [red] => 180
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => Doodads\Cityscape\Props\CrystalShield\CrystalShield.mdl
            [Missilespeed] => 10000
            [Missileart] => Abilities\Weapons\Bolt\BoltImpact.mdl
            [dice1] => 1
            [RngBuff1] => 250
            [green] => 180
            [modelScale] => 0.6
            [rangeN1] => 980
            [atkType1] => magic
            [cool1] => 1.35
            [Ubertip] => Simple storm tower that will deal all of its damage through spells. Has a minor chance to cast a chainlightning on attack.
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

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

            [abil_factor] => 0
            [damage_amount] => 770
            [author] => SirCoqaLot.
            [authorDisplay] => SirCoqaLot.
            [version] => 1.0
            [element] => storm
            [rarity] => uncommon
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -16.041
                    [y] => 17.1848
                    [z] => 0
                    [scale] => 0.21
                    [rot] => 5.37065
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 180
                    [green] => 180
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => call Chainlightning.targetCastFromCaster(tower,Event.getTarget(),1.0+tower.getLevel()*0.02,tower.calcSpellCritNoBonus())
                    [values] => Array
                        (
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNChainLightning.blp
                            [name] => Chainlightning
                            [short_explain] => This tower has a chance to release a chainlightning on attack.
                            [ONATTACK_chance] => 0.195
                            [ONATTACK_chanceLevelAdd] => 0.0025
                            [long_explain] => This tower has a |cffFFFF8019.5%|r chance on attack to release a chainlightning that does |cffFFFF801680|r damage and hit up to |cffFFFF803|r units.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+33.6|r damage|n|cffFFFF80+0.25%|r chance
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        Cast Chainlightning
    endglobals
    
    //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 Chainlightning = Cast.create('@@0@@',"chainlightning",5.0)
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => On Damage
                    [code] => local Unit creep = Event.getTarget()
    call tower.doSpellDamage(creep,770*(1+tower.getLevel()*0.02),tower.calcSpellCritNoBonus())
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [visible] => true
                            [icon] => ReplaceableTextures\CommandButtons\BTNAbsorbMagic.blp
                            [name] => Force Attack
                            [short_explain] => This tower deals no physical damage.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => This tower deals |cffFFFF80770|r spell damage on attack.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+15.4|r damage
                        )

                )

        )

    [abilities] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => AOcl
                    [oeValues] => Array
                        (
                            [Cost1] => 0
                            [Rng1] => 980
                            [Art] => ReplaceableTextures\CommandButtons\BTNChainLightning.blp
                            [hero] => 0
                            [Cool1] => 0
                            [DataA1] => 1680
                            [Area1] => 600
                            [DataC1] => 0
                            [Name] => Chainlightning
                            [DataB1] => 3
                            [Ubertip] => Has a 16% chance to hit up to 3 units with a chainlightning. Each jump reduces the damage done by 16%.
                            [Tip] => This tower has a chance to damage a few units with a chainlightning.
                            [levels] => 1
                            [targs1] => Array
                                (
                                )

                        )

                )

        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)