Mossy Acid Sprayer v1
40
ID:
161
Family ID:
Author:
cedi
Rarity:
common
Element:
iron
Attack Type:
Decay
Attack Range:
800
Attack CD:
1
Damage:
11-31
Abil. Factor:
0.9
Status:
Approved

Description:

Careful, corrosive.

Latest Upload Comment:

Restored from 1.10
Specials:
Bounce attack:
   3 targets
   -15% damage per bounce
Acid Coating
Decreases the armor of damaged units by 0.6 for 3 seconds.

Level Bonus:
+0.024 armor reduction
+0.12 seconds
Download

Toggle Triggers

Header

    globals
        //@export
        BuffType cedi_acidarmor
    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()
        call m.addModification( MOD_ARMOR, 0.0, -0.001 )
        set cedi_acidarmor = BuffType.create( 3.0, 0.12, false )
        call cedi_acidarmor.setBuffIcon( '@@0@@' )
        call cedi_acidarmor.setBuffModifier( m )
    endfunction

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
    call cedi_acidarmor.applyCustomTimed( tower, Event.getTarget(), 600 + tower.getLevel() * 24, 3.0 + 0.12 * tower.getLevel() )
endfunction