Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [Ubertip] => Looking at it causes feelings of déjà vu.
            [Art] => ReplaceableTextures\CommandButtons\BTNTimeWarp.blp
            [abilList] => Array
                (
                )

            [Name] => Warped Hourglass
        )

    [settings] => Array
        (
            [balanceTip] => |n|cffFFFF80Specials:|r|n|cffFFFF00+10% |rdebuff resistance
            [goldcost] => 1303
            [author] => Ashbringer
            [authorDisplay] => |cffff6600Ashbringer|r
            [version] => 1.0
            [rarity] => unique
        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DEBUFF_RESISTANCE
                    [base] => 0.1
                    [add] => 0
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType ashbringer_hourglass_buff1
        BuffType ashbringer_hourglass_buff2
        BuffType ashbringer_hourglass_buff3
    endglobals
    
    function ashbringer_hourglass_ondamage takes Buff b returns nothing
        local Tower tower = b.getBuffedUnit()
        local Unit target = Event.getTarget()
        
        call tower.doSpellDamage(target, tower.getCurrentAttackDamageWithBonus() * 0.75, tower.calcSpellCritNoBonus())
        call Effect.createSimpleOnUnit("war3mapImported\\AbsorbManaBirthMissileArcane.mdx", target, "chest").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
        local Modifier mod
        
        set ashbringer_hourglass_buff1 = BuffType.create(3, 0, true)
        call ashbringer_hourglass_buff1.setBuffIcon('@@0@@')
        set mod = Modifier.create()
        call mod.addModification(MOD_ATTACKSPEED, 0.5, 0)
        call ashbringer_hourglass_buff1.setBuffModifier(mod)
        
        set ashbringer_hourglass_buff2 = BuffType.create(3, 0, true)
        call ashbringer_hourglass_buff2.setBuffIcon('@@1@@')
        set mod = Modifier.create()
        call mod.addModification(MOD_MANA_REGEN_PERC, 3.0, 0)
        call ashbringer_hourglass_buff2.setBuffModifier(mod)
        
        set ashbringer_hourglass_buff3 = BuffType.create(3, 0, true)
        call ashbringer_hourglass_buff3.setBuffIcon('@@2@@')
        call ashbringer_hourglass_buff3.addEventOnDamage(EventHandler.ashbringer_hourglass_ondamage, 1.0, 0)
	endfunction
                    [values] => Array
                        (
                            [explain] => 
                            [visible] => false
                            [goldcost] => 0
                            [name] => 
                        )

                )

            [1] => Array
                (
                    [name] => Periodic
                    [code] => local Tower tower = itm.getCarrier()
    local integer random = GetRandomInt(0, 2)
    
    if random == 0 then
        call ashbringer_hourglass_buff1.apply(tower, tower, 0)
    elseif random == 1 then
        call ashbringer_hourglass_buff2.apply(tower, tower, 0)
    else
        call ashbringer_hourglass_buff3.apply(tower, tower, 0)
    endif
                    [values] => Array
                        (
                            [explain] => Every |cffFFFF8012|r seconds, gain one of the following buffs for |cffFFFF803|r seconds: |n|cffFFFF80+50%|r attack speed|n|cffFFFF80+300%|r mana regeneration|nAttacks deal |cffFFFF8075%|r of attack damage as additional spell damage
                            [visible] => true
                            [goldcost] => 1200
                            [PERIODIC_period] => 12.00
                            [name] => Time Anomaly
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [Targetattach] => origin
                            [EditorName] => Time Anomaly - Time Warp
                            [Buffubertip] => Increased attack speed.
                            [TargetArt] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
                            [Bufftip] => Time Anomaly - Time Warp
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNTimeWarp.blp
                        )

                )

            [1] => Array
                (
                    [id] => @@1@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [Targetattach] => origin
                            [EditorName] => Time Anomaly - Evocation
                            [Buffubertip] => Increased mana regeneration.
                            [TargetArt] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
                            [Bufftip] => Time Anomaly - Evocation
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNTimeWarp.blp
                        )

                )

            [2] => Array
                (
                    [id] => @@2@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [Targetattach] => origin
                            [EditorName] => Time Anomaly - Arcane Surge
                            [Buffubertip] => Attacks deal additional spell damage.
                            [TargetArt] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
                            [Bufftip] => Time Anomaly - Arcane Surge
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNTimeWarp.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)