Frosty Rock v1
100
|
ID: 684
Family ID:
Author: SirCoqaLot.
Rarity: uncommon
Element: ice
Attack Type: Energy
Attack Range: 760
Attack CD: 2.3
Damage: 237-237
Abil. Factor: 0.8
Status: Approved
|
Glacial Wrath
Attacks of this tower slow the attacked creep by 7% for 3 seconds. Each attack has a 2% to deal 100 spelldamage and stun the target for 0.8 seconds. The chance to stun the target is increased by 2% per attack and resets after a target is stunned. Level Bonus: +2 spelldamage +0.35% slow |
Download
Toggle Triggers Header globals
//@export
BuffType sir_frost_glacier
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_frost_glacier = BuffType.create(0,0,false)
call sir_frost_glacier.setBuffIcon('@@0@@')
call m.addModification(MOD_MOVESPEED,0,-0.001)
call sir_frost_glacier.setBuffModifier(m)
endfunction
On Damage
ONDAMAGE_chance: 1.0
ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local Creep creep = Event.getTarget()
call sir_frost_glacier.applyCustomTimed(tower,creep,70*(1+tower.getLevel()/20),3)
call tower.getOwner().displayFloatingTextX(I2S(R2I(tower.userInt))+"% Chance",tower,50,150,255,255,0.05,2,3)
if tower.calcChance(tower.userInt*0.01) == true and not Event.getTarget().isImmune() then
call cb_stun.applyOnlyTimed(tower,Event.getTarget(),0.8)
call tower.doSpellDamage(creep,100*(1+tower.getLevel()*0.02),tower.calcSpellCritNoBonus())
set tower.userInt = 2
else
set tower.userInt = tower.userInt +2
endif
endfunction
On Tower Creation function onCreate takes Tower tower returns nothing
set tower.userInt = 2
endfunction
|
Description:
Latest Upload Comment: