Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [Ubertip] => All trials end beneath its weight.
            [Art] => ReplaceableTextures\CommandButtons\BTNSpell_Holy_AuraOfLight.blp
            [abilList] => Array
                (
                )

            [Name] => Hammer of Judgement
        )

    [settings] => Array
        (
            [balanceTip] => |n|cffFFFF80Specials:|r|n|cffFFFF00+30% |rdamage
            [goldcost] => 1431
            [author] => Ashbringer
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [rarity] => rare
        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DAMAGE_ADD_PERC
                    [base] => 0.3
                    [add] => 0
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType ashbringer_finalverdict_buff
    endglobals
    
    function ashbringer_finalverdict_attacked takes Buff b returns nothing
        call b.setRemainingDuration(10.0)
    endfunction
    
    function ashbringer_finalverdict_expire takes Buff b returns nothing
        local Tower tower = b.getCaster()
        local Unit target = b.getBuffedUnit()
        
        call tower.doSpellDamage(target, tower.getCurrentAttackDamageWithBonus()*3.0, tower.calcSpellCritNoBonus())
        call Effect.createSimpleOnUnit("Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl", target, "origin").destroy()
    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
        set ashbringer_finalverdict_buff = BuffType.create(6, 0, false)
        call ashbringer_finalverdict_buff.setBuffIcon('@@0@@')
        call ashbringer_finalverdict_buff.addEventOnAttacked(ashbringer_finalverdict_attacked, 1.0, 0.0)
        call ashbringer_finalverdict_buff.setEventOnExpire(ashbringer_finalverdict_expire)
	endfunction
                    [values] => Array
                        (
                            [explain] => 
                            [visible] => false
                            [goldcost] => 0
                            [name] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Damage
                    [code] => local Unit target = Event.getTarget()
    local Buff b = target.getBuffOfType(ashbringer_finalverdict_buff)
    
    if b == 0 then
        set b = ashbringer_finalverdict_buff.apply(itm.getCarrier(), target, 0)
    endif
    call b.setRemainingDuration(6.0)
                    [values] => Array
                        (
                            [explain] => Attacks apply Final Verdict to the target for |cffFFFF806|r seconds. Final Verdict deals |cffFFFF80300%|r of the tower's attack damage as spell damage when it expires. Attacks from any tower will refresh the duration.
                            [ONDAMAGE_chance] => 1.0
                            [visible] => true
                            [goldcost] => 600
                            [name] => Final Verdict
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [Buffubertip] => Deals spell damage upon expiration.
                            [TargetArt] => Abilities\Spells\NightElf\Barkskin\BarkSkinTarget.mdl
                            [Bufftip] => Final Verdict
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNSpell_Holy_AuraOfLight.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)