Small Ray Blaster v1
150
ID:
305
Family ID:
Author:
i_mOck_death
Rarity:
uncommon
Element:
iron
Attack Type:
Energy
Attack Range:
800
Attack CD:
1.4
Damage:
79-98
Abil. Factor:
.75
Status:
Approved

Description:

Uncommon iron tower that leaves a debuff on the enemy unit that increases item drop quality and chance of an item drop.

Latest Upload Comment:

Restored from 1.10
Phaze
Whenever this tower damages a creep it increases its item drop chance and item drop quality by 5% for 5 seconds. 

Level Bonus:
 +0.3% item drop quality 
 +0.3% item drop chance 
 +0.1 seconds
Download

Toggle Triggers

Header

            globals
        //@export
        BuffType mOck_rayBlaster
    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 ironMod = Modifier.create()
        set   mOck_rayBlaster = BuffType.create(0,0,false)//uses custom time nubz is gay
        call  ironMod.addModification(MOD_ITEM_QUALITY_ON_DEATH,0.0,0.0001)
        call  ironMod.addModification(MOD_ITEM_CHANCE_ON_DEATH,0.0,0.0001)
        call  mOck_rayBlaster.setBuffModifier(ironMod)
        call  mOck_rayBlaster.setBuffIcon('@@0@@') 
    endfunction
        

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
            
call mOck_rayBlaster.applyCustomTimed(tower,Event.getTarget(),500 + 30 * tower.getLevel(),5+tower.getLevel()*0.1)
        
endfunction