Helm of Insanity v1
500
lvl: 12

ID:

285

Author:

Boekie

Rarity:

unique

Status:

Approved

Description:

Gives enormous strength but exhausts the user.

Latest Upload Comment:

Restored from 1.10
Insane Strength
When this item is activated the next 12 attacks will deal 200% damage but the user becomes exhausted. When the user is exhausted it deals only 50% damage on the next 16 attacks.
Download

Toggle Triggers

Autocast

caster_art: AUTOCAST_cooldown: 120 AUTOCAST_numBuffsBeforeIdle: 0 goldcost: 500 AUTOCAST_isExtended: false AUTOCAST_autocastType: AC_TYPE_NOAC_IMMEDIATE AUTOCAST_manacost: 0 AUTOCAST_range: 0 AUTOCAST_buffType: 0 AUTOCAST_targetSelf: true AUTOCAST_targetType: 0 target_art: AUTOCAST_autoRange: 0
set itm.userInt = 0

On Damage

ONDAMAGE_chance: 1.0 goldcost: 0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Item itm returns nothing
    local Tower tower = itm.getCarrier()
    
    if itm.userInt >= 12 and itm.userInt < 28 then
    
        set Event.damage=Event.damage*0.5 

        if Event.isMainTarget() then
            call tower.getOwner().displaySmallFloatingText("Exhausted!",tower,255, 150, 0,30)
            set itm.userInt = itm.userInt + 1
        endif

    endif


    if itm.userInt < 12 then
    
        set Event.damage=Event.damage*2 

        if Event.isMainTarget() then
            call tower.getOwner().displaySmallFloatingText("Insane!",tower,255, 150, 0,30)
            set itm.userInt = itm.userInt + 1
        endif
        
    endif

    
endfunction

On Item Creation

goldcost: 0
function onCreate takes Item itm returns nothing
set itm.userInt = 50
endfunction

On Item Drop

goldcost: 0
function onDrop takes Item itm returns nothing
set itm.userInt = 50
endfunction