Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [Ubertip] => Avarice is never satisfied.
            [Art] => ReplaceableTextures\CommandButtons\BTNSpell_Holy_HolyNova.blp
            [abilList] => Array
                (
                )

            [Name] => Idol of Avarice
        )

    [settings] => Array
        (
            [balanceTip] => |n|cffFFFF80Specials:|r|n|cffFFFF00-15% |rexp gain
            [goldcost] => 600
            [author] => Ashbringer
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [rarity] => rare
        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_EXP_RECEIVED
                    [base] => -0.15
                    [add] => 0
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType ashbringer_avarice_buff
    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 mod = Modifier.create()
        
        set ashbringer_avarice_buff = BuffType.create(4, 0, true)
        call ashbringer_avarice_buff.setBuffIcon('@@0@@')
        call mod.addModification(MOD_BOUNTY_RECEIVED, 0, 0.25)
        call mod.addModification(MOD_ITEM_CHANCE_ON_KILL , 0, 0.15)
        call ashbringer_avarice_buff.setBuffModifier(mod)
	endfunction
                    [values] => Array
                        (
                            [explain] => 
                            [visible] => false
                            [goldcost] => 0
                            [name] => 
                        )

                )

            [1] => Array
                (
                    [name] => On Kill
                    [code] => local Tower tower = itm.getCarrier()
    local Buff b = tower.getBuffOfType(ashbringer_avarice_buff)
    
    if b != 0 then
        if b.getPower() < 3 then
            call ashbringer_avarice_buff.apply(tower, tower, b.getPower()+1)
        else
            call b.refreshDuration()
        endif
    else
        call ashbringer_avarice_buff.apply(tower, tower, 1)
    endif
                    [values] => Array
                        (
                            [explain] => On kill, Gain Avarice for |cffFFFF804|r seconds. Avarice grants |cffFFFF8015%|r item chance and |cffFFFF8025%|r bounty collected and can stack up to |cffFFFF803|r times.
                            [visible] => true
                            [goldcost] => 600
                            [name] => Avarice
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [Targetattach] => overhead
                            [EditorName] => Avarice
                            [Buffubertip] => Increased item chance and bounty collected.
                            [TargetArt] => Objects\InventoryItems\PotofGold\PotofGold.mdl
                            [Bufftip] => Avarice
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNSpell_Holy_HolyNova.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)