Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [Name] => Purifying Gloves
            [Art] => ReplaceableTextures\CommandButtons\BTNHeal.blp
            [Ubertip] => Mends every wound, hurts every villain.
            [abilList] => Array
                (
                )

        )

    [settings] => Array
        (
            [author] => drol
            [authorDisplay] => |cffcc6600drol|r
            [balanceTip] => Array
                (
                )

            [rarity] => rare
            [goldcost] => 150
            [version] => 1.0
        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => Header
                    [code] => globals
        Cast drol_chainCast
    endglobals
    
    function drol_chainStun takes DummyUnit d returns nothing
    
        local Unit creep = Event.getTarget()
        
        if creep.getCategory() == 0 or creep.getCategory() == 3 then
            call cb_stun.applyOnlyTimed(d.getCaster(),Event.getTarget(),0.5)
        endif
    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 drol_chainCast = Cast.create('@@0@@',"chainlightning",5.0)
        call drol_chainCast.setDamageEvent(drol_chainStun)
    
	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.calcChance(0.125 * speed) then
    call drol_chainCast.targetCastFromCaster(tower, Event.getTarget(),1,tower.calcSpellCritNoBonus())
    endif
                    [values] => Array
                        (
                            [visible] => true
                            [name] => Purify
                            [goldcost] => 150
                            [explain] => Grants the carrier a |cffFFFF8012.5%|r attackspeed adjusted chance on attack to cast a purifying beam of magic. Deals |cffFFFF80250|r spelldamage on the first target and bounces to |cffFFFF802|r other targets. Each bounce reduces the damage by |cffFFFF8025%|r. Undead and Orc creeps also get stunned for |cffFFFF800.5|r seconds when hit by this beam.
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                        )

                )

        )

    [abilities] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => ACcl
                    [oeValues] => Array
                        (
                            [Missileart] => Array
                                (
                                )

                            [Art] => ReplaceableTextures\CommandButtons\BTNHeal.blp
                            [Cool1] => 0
                            [Rng1] => 2500
                            [TargetArt] => Array
                                (
                                )

                            [DataA1] => 250
                            [LightningEffect] => HWPB,HWSB
                            [DataB1] => 3
                        )

                )

        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)