Monolith of Chaos v1
3000
|
ID: 36
Family ID:
Author: cedi
Rarity: unique
Element: darkness
Attack Type: Decay
Attack Range: 750
Attack CD: 0.8
Damage: 1589-1589
Status: Approved
|
Specials:
+25% dmg to humanoids (+1%/lvl)
Chaos
All creeps that come in 750 range around this tower have a 45% chance to lose 100% of their armor for 3 seconds. The armor reduction is halved for Bosses and Challenges. Level Bonus: +0.1 seconds +0.4% chance |
Download
Toggle Triggers Header globals
BuffType cedi_MoC
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 cedi_MoC = BuffType.create( 3.00, 0.1, false )
call cedi_MoC.setBuffIcon( '@@0@@' )
call m.addModification( MOD_ARMOR_PERC, -1.00, 0.50 )
call cedi_MoC.setBuffModifier( m )
endfunction
On Unit Comes In Range
UNITINRANGE_targetType: TARGET_TYPE_CREEPS
UNITINRANGE_range: 750
function onUnitInRange takes Tower tower returns nothing
local Unit U = Event.getTarget()
local integer i = tower.getLevel()
if tower.calcChance( 0.45 + i * 0.004 ) then
if ( U.getSize() < SIZE_BOSS ) then
call cedi_MoC.applyCustomTimed( tower, U, 0, 3.00 + 0.1 * i )
else
call cedi_MoC.applyCustomTimed( tower, U, 1, 3.00 + 0.1 * i )
endif
endif
endfunction
|
Description: