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

            [Art] => ReplaceableTextures\CommandButtons\BTNFrostArmor.blp
            [dmgplus1] => 45
            [bldtm] => 1
            [goldcost] => 70
            [sides1] => 1
            [manaN] => 25
            [acquire] => 900
            [upgrades] => Array
                (
                )

            [Upgrade] => Array
                (
                )

            [Name] => Small Frost Fire
            [red] => 120
            [weapTp1] => missile
            [MissileHoming] => 1
            [file] => Doodads\Barrens\Props\Barrens_Bones\Barrens_Bones2.mdl
            [uberSplat] => OSMA
            [Missileart] => Abilities\Spells\Other\BlackArrow\BlackArrowMissile.mdl
            [Missilespeed] => 1500
            [dice1] => 1
            [RngBuff1] => 250
            [regenMana] => 2
            [mana0] => 5
            [modelScale] => 0.6
            [rangeN1] => 900
            [atkType1] => chaos
            [cool1] => 0.9
            [Ubertip] => This tower uses mana to summon coldfire from the Frozen Heart of Hell for minor AoE damage and slowing effect. Stolen souls improve this ability with each tower level.
            [blue] => 230
            [abilList] => Array
                (
                )

            [buildingShadow] => Array
                (
                )

            [targs1] => Array
                (
                )

            [weapsOn] => 1
        )

    [settings] => Array
        (
            [balanceTip] => |cffFFFF00-25% |rdmg to undead (|cffFFFF00+0.2%|r/lvl)
            [abil_factor] => 0.8
            [author] => IamanEvilMan
            [alpha] => 255
            [authorDisplay] => |c00ff0000IamanEvilMan|r
            [version] => 1.0
            [element] => darkness
            [rarity] => common
        )

    [effects] => Array
        (
            [0] => Array
                (
                    [x] => 9.0112
                    [y] => -23.862
                    [z] => 0
                    [scale] => 0.8
                    [rot] => 4.69494
                    [file] => Abilities\Spells\Items\AIso\BIsvTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

            [1] => Array
                (
                    [x] => 7.37011
                    [y] => -7.98142
                    [z] => 0
                    [scale] => 0.85
                    [rot] => 4.69494
                    [file] => Abilities\Spells\Items\AIso\BIsvTarget.mdl
                    [red] => 255
                    [green] => 255
                    [blue] => 255
                    [alpha] => 255
                    [pitch] => 0
                    [advanced] => false
                    [animation] => Array
                        (
                        )

                    [aniSpeed] => 50
                )

        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_UNDEAD
                    [base] => -0.25
                    [add] => 0.002
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
    //@export
    BuffType soul_chill   
endglobals
    
private function init takes nothing returns nothing

	local Modifier slow=Modifier.create()
	call slow.addModification(MOD_MOVESPEED, 0, -0.001)
	set soul_chill=BuffType.create(0, 0, false)
	call soul_chill.setBuffIcon('@@0@@')
	call soul_chill.setBuffModifier(slow)
    
endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [icon] => 
                            [name] => 
                            [short_explain] => 
                            [long_explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => Autocast
                    [code] => local Unit targ = Event.getTarget()
    local Iterate it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,targ,250)
    local Unit next

    local real calculated_slow = 50 + tower.getLevel() * 2
    local real duration = 4.0 + tower.getLevel() * 0.02
    local real spelldmg = 50 + tower.getLevel() * 2 
    
loop

    set next = it.next()
    exitwhen next == 0
    call soul_chill.applyCustomTimed(tower, next, R2I(calculated_slow), duration)
    call tower.doSpellDamage(next, spelldmg, tower.calcSpellCritNoBonus())

endloop

    call SFXAtUnit("Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl", targ.getUnit())
                    [values] => Array
                        (
                            [AUTOCAST_cooldown] => 1
                            [AUTOCAST_autoRange] => 900
                            [visible] => true
                            [AUTOCAST_manacost] => 20
                            [icon] => ReplaceableTextures\CommandButtons\BTNDarkRitual.blp
                            [AUTOCAST_range] => 900
                            [AUTOCAST_targetType] => 0
                            [AUTOCAST_numBuffsBeforeIdle] => 2
                            [caster_art] => 
                            [long_explain] => Chills the souls of all creeps in |cffFFFF80250|r AoE of the target, dealing |cffFFFF8050|r spelldamage and slowing them by |cffFFFF805%|r for |cffFFFF804|r seconds. |n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+2|r damage |n|cffFFFF80+0.2%|r slow |n|cffFFFF80+0.02|r seconds duration
                            [target_art] => Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl
                            [AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_UNIT
                            [AUTOCAST_buffType] => soul_chill
                            [AUTOCAST_isExtended] => false
                            [name] => Soul Chill
                            [AUTOCAST_targetSelf] => false
                            [short_explain] => Deals spelldamage and slows units in a small area.
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Bfro
                    [oeValues] => Array
                        (
                            [EditorName] => Soul Chill
                            [Buffubertip] => This unit is slowed by Soul Chill.
                            [TargetArt] => Abilities\Spells\Other\HowlOfTerror\HowlTarget.mdl
                            [Bufftip] => Soul Chill
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNDarkRitual.blp
                        )

                )

        )

    [units] => Array
        (
        )

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

        )

)