Small Light v1
65
|
ID: 80
Family ID:
Author: SternBogen
Rarity: uncommon
Element: astral
Attack Type: Energy
Attack Range: 850
Attack CD: 1
Damage: 53-59
Abil. Factor: 0.85
Status: Approved
|
Power of Light
The mighty holy light weakens enemy undead creeps for 3 seconds, so they will receive 5% more damage from physical and spell attacks. Level Bonus: +0.12 seconds +0.2% damage |
Download
Toggle Triggers Header globals
//@export
BuffType sternbogen_holy_Buff
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 light_mod = Modifier.create()
set sternbogen_holy_Buff = BuffType.create(3,0.012,false)
call light_mod.addModification(MOD_SPELL_DAMAGE_RECEIVED, 0.0 , 0.001 )
call light_mod.addModification(MOD_ATK_DAMAGE_RECEIVED, 0.0 , 0.001 )
call sternbogen_holy_Buff.setBuffModifier(light_mod)
call sternbogen_holy_Buff.setBuffIcon('@@1@@')
endfunction
On Damage
ONDAMAGE_chance: 1.0
ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local Unit creep = Event.getTarget()
// 0.001 Basic Bonus
local integer bufflevel = 50 + 2 * tower.getLevel()
if (CATEGORY_UNDEAD == creep.getCategory()) then
call sternbogen_holy_Buff.apply(tower,Event.getTarget(),bufflevel)
endif
endfunction
|
Description:
Latest Upload Comment: