Toy Boy v1
1970
lvl: 83

ID:

146

Author:

cedi

Rarity:

rare

Status:

Approved

Description:

Play with me, or I will kill you.

Latest Upload Comment:

Restored from 1.10
Play With Me!
Every 10 seconds the Toy Boy forces the tower to play with him, slowing attack speed of the tower by 50% for 2 seconds.
Specials:
+50% damage (+1%/lvl)
Download

Toggle Triggers

Header

goldcost: 0
    globals
        BuffType BT
    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_ATTACKSPEED, -0.5, 0.00 )
        set BT = BuffType.create( 2.0, 0.00, false )
        call BT.setBuffIcon( '@@0@@' )
        call BT.setBuffModifier( m )
    endfunction

Periodic

PERIODIC_period: 10.00 goldcost: -500
function periodic takes Item itm returns nothing
    call BT.apply( itm.getCarrier(), itm.getCarrier(), 1 )
endfunction