Doom's Ensign v1
1500
lvl: 44

ID:

253

Author:

cedi

Rarity:

unique

Status:

Approved

Description:

This relic is imbued with dark powers.

Latest Upload Comment:

Restored from 1.10
Ensign's Touch
When the user of this item attacks an enemy it decreases the armor of the target by 10% for 5 seconds.

Level Bonus:
+0.6% armor decrease
Download

Toggle Triggers

Header

goldcost: 1500
    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()
        set BT = BuffType.create( 5.00, 0.00, false )
        call m.addModification( MOD_ARMOR_PERC, -0.10, -0.006 )
        call BT.setBuffModifier( m )
        call BT.setBuffIcon( '@@0@@' )
    endfunction

On Damage

ONDAMAGE_chance: 1.0 goldcost: 0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Item itm returns nothing
    if Event.isMainTarget() then
        call BT.apply( itm.getCarrier(), Event.getTarget(), itm.getCarrier().getLevel() )
    endif
endfunction