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

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

            [Upgrade] => Array
                (
                )

            [Name] => Lightning 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] => 70
            [author] => SirCoqaLot.
            [authorDisplay] => SirCoqaLot.
            [version] => 1.0
            [element] => storm
            [rarity] => uncommon
        )

    [effects] => Array
        (
        )

    [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 |cffFFFF80150|r damage and hits up to |cffFFFF803|r units.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+3|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,70*(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 |cffFFFF8070|r spell damage on attack.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1.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] => 150
                            [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
        (
        )

)