Initiate Elementalist v1
150
|
ID: 59
Family ID:
Author: Kel-Thuzad
Rarity: uncommon
Element: astral
Attack Type: Magic
Attack Range: 900
Attack CD: 2
Damage: 25-25
Abil. Factor: 0.075
Status: Approved
|
Elemental Chaos
Elementalist casts one of the following spells on attack: Fire Blast: 66% chance, 200 AoE, 190 damage Frost Nova: 33% chance, 250 AoE, 125 damage, 10% slow for 3 seconds Level Bonus: +7.6 damage (Fire Blast) +5 damage (Frost Nova) |
Download
Toggle Triggers Header globals
//@export
BuffType KelSlow
endglobals
//The init function
private function init takes nothing returns nothing
local Modifier slow=Modifier.create()
call slow.addModification(MOD_MOVESPEED,0,-0.001)
set KelSlow=BuffType.create(0,0,false) // apply custom timed
call KelSlow.setBuffIcon('@@0@@')
call KelSlow.setBuffModifier(slow)
endfunction
On Attack
ONATTACK_chance: 1.0
ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
local integer randomSpellID=GetRandomInt(1,3)
local Creep c = Event.getTarget()
local Unit u
local Iterate it
if randomSpellID<3 then
call SFXAtUnit("Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl",c.getUnit())
call tower.doSpellDamageAoEUnit(c,200,190+tower.getLevel()*7.6,tower.calcSpellCritNoBonus(),0)
else
set it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,c,250)
loop
set u = it.next()
exitwhen u == 0
call KelSlow.applyCustomTimed(tower,u,100,3)
endloop
call SFXAtUnit("Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl",c.getUnit())
call tower.doSpellDamageAoEUnit(c,250,125+tower.getLevel()*5,tower.calcSpellCritNoBonus(),0)
endif
endfunction
|
Description:
Latest Upload Comment: