Glaive of Surpreme Follow Up v1
2100
lvl: 63

ID:

162

Author:

cedi

Rarity:

unique

Status:

Approved

Description:

Never ever be frustrated again because there is just no follow up damage.

Latest Upload Comment:

Restored from 1.10
Follow Up
Whenever this tower attacks it has a 10% chance to gain 300% attackspeed until next attack. The next attack will crit for sure but deals 50% less crit damage.

Level Bonus:
+0.4% chance
+4% attackspeed
+1% crit damage
Download

Toggle Triggers

Header

goldcost: 0
    globals
        BuffType BT
    endglobals
    
    function attack takes Buff B returns nothing
        local Tower t = B.getBuffedUnit()
        if B.userInt == 0 then
            call t.addModifiedAttackCrit( 0.00, 0.5 + t.getLevel() / 100.0 )
            call B.removeBuff()
        else
            set B.userInt = 0
        endif
    endfunction
    
    //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 mod = Modifier.create()
        call mod.addModification( MOD_ATTACKSPEED, 3.0, 0.04 )
        
        set BT = BuffType.create( 30.0, 0.0, true )
        call BT.setBuffIcon( '@@0@@' )
        call BT.setBuffModifier( mod )
        call BT.addEventOnAttack( attack, 1.0, 0.0 )
    endfunction

On Attack

goldcost: 2100 ONATTACK_chance: 0.1 ONATTACK_chanceLevelAdd: 0.004
function onAttack takes Item itm returns nothing
    local Buff B = BT.apply( itm.getCarrier(), itm.getCarrier(), itm.getCarrier().getLevel() )
    set B.userInt = 1
endfunction