Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [RngBuff1] => 250
            [scaleBull] => 0
            [Upgrade] => Array
                (
                )

            [targs1] => Array
                (
                )

            [goldcost] => 1200
            [weapsOn] => 1
            [dice1] => 1
            [damageLoss1] => 0.6
            [Missilespeed] => 1500
            [moveHeight] => 20
            [targCount1] => 2
            [file] => buildings\other\PowerGenerator\PowerGenerator.mdl
            [atkType1] => normal
            [modelScale] => 0.4
            [weapTp1] => mbounce
            [acquire] => 1200
            [rangeN1] => 1200
            [upgrades] => Array
                (
                )

            [cool1] => 1.65
            [Ubertip] => Quite an advanced construction for its times. It harbors a pulsating red crystal at its center, which has been rumored to drive lesser beings insane.
            [Farea1] => 400
            [abilList] => Array
                (
                )

            [Name] => Red Ball Lightning
            [Missileart] => Abilities\Weapons\VengeanceMissile\VengeanceMissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNStasisTrap.blp
            [buildingShadow] => Array
                (
                )

            [sides1] => 450
            [auto] => Array
                (
                )

            [dmgplus1] => 227
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => SirCoqaLot.
            [element] => storm
            [authorDisplay] => SirCoqaLot.
            [alpha] => 255
            [balanceTip] => |cffCCFF00Bounce attack:|n   |cffFFFF002|r targets|n   |cffFFFF00-60%|r damage per bounce
            [rarity] => rare
            [version] => 1.0
            [abil_factor] => 0.3
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => -1.94797
                    [y] => 31.8967
                    [z] => 0
                    [scale] => 0.1575
                    [rot] => 4.71239
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => -2.86446
                    [y] => -11.954
                    [z] => 0
                    [scale] => 0.1575
                    [rot] => 1.5708
                    [file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [2] => Array
                (
                    [x] => 42.4569
                    [y] => -23.1579
                    [z] => 0
                    [scale] => 0.3375
                    [rot] => 3.67276
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle1_Ruined\City_ColumnSingle1_Ruined.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [3] => Array
                (
                    [x] => 43.2154
                    [y] => -22.835
                    [z] => 76.8
                    [scale] => 1
                    [rot] => 3.11111
                    [file] => Abilities\Weapons\VengeanceMissile\VengeanceMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [4] => Array
                (
                    [x] => -45.9774
                    [y] => -25.2097
                    [z] => 0
                    [scale] => 0.3375
                    [rot] => 1.92762
                    [file] => Doodads\Cityscape\Structures\City_ColumnSingle1_Ruined\City_ColumnSingle1_Ruined.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [5] => Array
                (
                    [x] => -46.6281
                    [y] => -28.1543
                    [z] => 76.8
                    [scale] => 1
                    [rot] => 6.25732
                    [file] => Abilities\Weapons\VengeanceMissile\VengeanceMissile.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Damage
                    [code] => local Unit creep = Event.getTarget()
    call Lightning.createFromUnitToUnit("AFOD", tower, creep).setLifetime(0.2)
    call tower.doSpellDamage(creep,1200*(1+tower.getLevel()*0.04),tower.calcSpellCrit(0.1,0.6))
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 0.3
                            [icon] => ReplaceableTextures\CommandButtons\BTNStasisTrap.blp
                            [visible] => true
                            [name] => Lightning Shock
                            [short_explain] => Has a small chance to release a single target damage spell on damage.
                            [ONDAMAGE_chanceLevelAdd] => 0.005
                            [long_explain] => This tower has a |cffFFFF8030%|r chance to deal |cffFFFF801200|r spell damage to its target, whenever it deals damage. This ability has a |cffFFFF8010%|r bonus chance to crit with |cffFFFF8060%|r bonus damage.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.5%|r chance|n|cffFFFF80+48|r damage
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        //@export
        BuffType sir_spell_aura
    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
    
    local Modifier m = Modifier.create()
    set sir_spell_aura = BuffType.createAuraEffectType(true)
    call m.addModification(MOD_SPELL_DAMAGE_DEALT,0.0,0.0001)
    call sir_spell_aura.setBuffModifier(m)
    call sir_spell_aura.setBuffIcon('@@0@@')
    
	endfunction
                    [values] => Array
                        (
                            [icon] => 
                            [visible] => false
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [2] => Array
                (
                    [name] => Tower Aura
                    [code] => Array
                        (
                        )

                    [values] => Array
                        (
                            [icon] => ReplaceableTextures\CommandButtons\BTNFarSight.blp
                            [visible] => true
                            [AURA_auraEffect] => sir_spell_aura
                            [AURA_power] => 2000
                            [AURA_level] => 2000
                            [long_explain] => Towers in |cffFFFF80250|r range have their spell damage increased by |cffFFFF8020%|r.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r spell damage
                            [AURA_auraRange] => 250
                            [AURA_targetType] => TARGET_TYPE_TOWERS
                            [AURA_levelAdd] => 40
                            [AURA_powerAdd] => 40
                            [name] => Lightning Charge
                            [AURA_targetSelf] => true
                            [short_explain] => Towers in a small aoe around this tower have their spell damage increased.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Bslo
                    [oeValues] => Array
                        (
                            [Bufftip] => Lightning Charge
                            [Buffubertip] => This unit has increased spelldamage.
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNFarSight.blp
                            [TargetArt] => Array
                                (
                                )

                            [Spelldetail] => 0
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
            [0] => Array
                (
                    [export] => true
                    [category] => global
                    [typ] => BuffType
                    [name] => sir_spell_aura
                )

        )

)