Bonk's Face v1
800
lvl: 21

ID:

35

Author:

drol

Rarity:

unique

Status:

Approved

Description:

So heavy it is nearly impossible to move this giant rock.

Latest Upload Comment:

Restored from 1.10
Crush
Whenever the carrier damages a stunned creep it deals 20% of its current attack damage as spelldamage in 250 AoE around its target.
Specials:
+25% dmg to masses
Download

Toggle Triggers

On Damage

ONDAMAGE_chance: 1.0 goldcost: 733 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Item itm returns nothing
    local Unit creep = Event.getTarget()
    local unit creepUnit = creep.getUnit()
    local Unit twr = itm.getCarrier()
    local Effect targetEffect    

    if creep.getBuffOfGroup( "stun" ) > 0 then 
        call twr.doSpellDamageAoEUnit(creep,250,(twr.getCurrentAttackDamageWithBonus())*0.2,twr.calcSpellCritNoBonus(),0)
        set targetEffect = Effect.createScaled("Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl", GetUnitX(creepUnit), GetUnitY(creepUnit), 0.0, 0, 2.0) 
        call targetEffect.setLifetime(3.0) 
    endif
    set creepUnit = null
endfunction