Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [Name] => Liquid Gold
            [Art] => ReplaceableTextures\CommandButtons\BTNStrongDrink.blp
            [Ubertip] => Boosts damage with a drawback.
            [abilList] => Array
                (
                )

        )

    [settings] => Array
        (
            [author] => drol
            [authorDisplay] => |cffcc6600drol|r
            [balanceTip] => |n|cffFFFF00+35% |rdamage
            [rarity] => rare
            [goldcost] => 447
            [version] => 1.0
        )

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

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType drol_hangover
    endglobals
    
    function drolDrunk takes Buff b returns nothing
        local Unit tower = b.getCaster()
        call cb_stun.applyOnlyTimed(tower,tower,3-tower.getLevel()*0.1)
    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 m = Modifier.create()
        call m.addModification(MOD_ATTACKSPEED,-0.30,0.01)
        set drol_hangover = BuffType.create(8,0,false)
        call drol_hangover.setBuffModifier(m)
        call drol_hangover.setBuffIcon('@@0@@')
        call drol_hangover.setEventOnExpire(EventHandler.drolDrunk)
    
	endfunction
                    [values] => Array
                        (
                            [visible] => false
                            [name] => 
                            [goldcost] => 0
                            [explain] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Attack
                    [code] => local Tower tower = itm.getCarrier()
    local real speed = tower.getBaseAttackspeed()
    
    if tower.calcBadChance(0.1 * speed) then
        call drol_hangover.apply(tower,tower,tower.getLevel())
    endif
                    [values] => Array
                        (
                            [visible] => true
                            [name] => Hangover
                            [goldcost] => -600
                            [explain] => Each attack has a |cffFFFF8010%|r attackspeed adjusted chance to give the user a hangover, slowing its attackspeed by |cffFFFF8030%|r for |cffFFFF808|r seconds and stunning it for |cffFFFF803|r seconds when it expires.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1%|r attackspeed|n|cffFFFF80-0.1|r second stun duration
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => Bblo
                    [oeValues] => Array
                        (
                            [Targetattach1] => Array
                                (
                                )

                            [Bufftip] => Hangover
                            [Targetattach] => Array
                                (
                                )

                            [Buffubertip] => This towers attackspeed is reduced and on expire it will be stunned for a short period.
                            [Targetattachcount] => 0
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNStrongDrink.blp
                            [TargetArt] => Array
                                (
                                )

                            [EditorName] => Hangover
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)