Small Frost Fire v1
70
ID:
364
Family ID:
Author:
IamanEvilMan
Rarity:
common
Element:
darkness
Attack Type:
Essence
Attack Range:
900
Attack CD:
0.9
Damage:
46-46
Abil. Factor:
0.8
Status:
Approved

Description:

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.

Latest Upload Comment:

Restored from 1.10
Specials:
-25% dmg to undead (+0.2%/lvl)
Soul Chill
Chills the souls of all creeps in 250 AoE of the target, dealing 50 spelldamage and slowing them by 5% for 4 seconds. 

Level Bonus:
+2 damage 
+0.2% slow 
+0.02 seconds duration
Download

Toggle Triggers

Autocast

AUTOCAST_cooldown: 1 AUTOCAST_autoRange: 900 AUTOCAST_manacost: 20 AUTOCAST_range: 900 AUTOCAST_targetType: 0 AUTOCAST_numBuffsBeforeIdle: 2 caster_art: target_art: Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl AUTOCAST_autocastType: AC_TYPE_OFFENSIVE_UNIT AUTOCAST_buffType: soul_chill AUTOCAST_isExtended: false AUTOCAST_targetSelf: false
private function onAutocast takes Tower tower returns nothing
    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())
endfunction

Header

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