Lightning Generator v1
92
|
ID: 378
Family ID:
Author: SirCoqaLot.
Rarity: uncommon
Element: storm
Attack Type: Magic
Attack Range: 980
Attack CD: 1.35
Damage: 1-1
Abil. Factor: 0
Status: Approved
|
Chainlightning
This tower has a 19.5% chance on attack to release a chainlightning that does 150 damage and hits up to 3 units. Level Bonus: +3 damage +0.25% chance
Force Attack
This tower deals 70 spell damage on attack. Level Bonus: +1.4 damage |
Download
Toggle Triggers Header globals
Cast Chainlightning
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
set Chainlightning = Cast.create('@@0@@',"chainlightning",5.0)
endfunction
On Attack
ONATTACK_chance: 0.195
ONATTACK_chanceLevelAdd: 0.0025
function onAttack takes Tower tower returns nothing
call Chainlightning.targetCastFromCaster(tower,Event.getTarget(),1.0+tower.getLevel()*0.02,tower.calcSpellCritNoBonus())
endfunction
On Damage
ONDAMAGE_chance: 1.0
ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local Unit creep = Event.getTarget()
call tower.doSpellDamage(creep,70*(1+tower.getLevel()*0.02),tower.calcSpellCritNoBonus())
endfunction
|
Description:
Latest Upload Comment: