Small Ice Mine v1
150
|
ID: 28
Family ID:
Author: Velex
Rarity: uncommon
Element: ice
Attack Type: Elemental
Attack Range: 700
Attack CD: 2
Damage: 280-281
Abil. Factor: 0.7
Status: Approved
|
Ice Nova
Damaged targets have a 20% chance to get blasted by an ice nova, dealing 150 damage and slowing units in 250 range by 7.5% for 2 seconds. Has a 30% bonus chance to crit. Level Bonus: +0.4% chance +7.5 damage |
Download
Toggle Triggers Header globals
//@export
BuffType Maj_iceNovaSlow
endglobals
//The init function
private function init takes nothing returns nothing
local Modifier m = Modifier.create()
set Maj_iceNovaSlow = BuffType.create(0,0,false)
call m.addModification(MOD_MOVESPEED,0,-0.001)
call Maj_iceNovaSlow.setBuffModifier(m)
call Maj_iceNovaSlow.setBuffIcon('@@0@@')
endfunction
On Damage
ONDAMAGE_chance: .2
ONDAMAGE_chanceLevelAdd: 0.004
function onDamage takes Tower tower returns nothing
local Unit targ = Event.getTarget()
local Iterate it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_TYPE_CREEPS,targ,250)
local Unit next
loop
set next = it.next()
exitwhen next == 0
call Maj_iceNovaSlow.applyCustomTimed(tower, next, 75, 2.0)
endloop
call tower.doSpellDamageAoEUnit(targ,250,150+(tower.getLevel()*7.5),tower.calcSpellCrit(0.3,0.0),0)
call SFXAtUnit("Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl", targ.getUnit())
endfunction
|
Description:
Latest Upload Comment: