Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [Ubertip] => Illuminates the darkest of voids.
            [Art] => ReplaceableTextures\CommandButtons\BTNStarfall.blp
            [abilList] => Array
                (
                )

            [Name] => Starlight Spark
        )

    [settings] => Array
        (
            [balanceTip] => |n|cffFFFF80Specials:|r|n|cffFFFF00+40% |rdmg to undead|n|cffFFFF00+40% |rdmg to orcs|n|cffFFFF00+x1|r spell crit damage
            [goldcost] => 2600
            [author] => Moppy
            [authorDisplay] => |c006969FFMoppy|r
            [version] => 1.0
            [rarity] => unique
        )

    [dmgTable] => Array
        (
            [0] => Array
                (
                    [id] => MOD_DMG_TO_UNDEAD
                    [base] => 0.4
                    [add] => 0
                )

            [1] => Array
                (
                    [id] => MOD_DMG_TO_ORC
                    [base] => 0.4
                    [add] => 0
                )

            [2] => Array
                (
                    [id] => MOD_SPELL_CRIT_DAMAGE
                    [base] => 1
                    [add] => 0
                )

        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local Tower t = itm.getCarrier()
    if t.calcChance(0.15 * t.getBaseAttackspeed()) then
        call Projectile.createFromUnitToUnit(moppy_starlight_spark_shot, t, 1, 0, t, Event.getTarget(), true, false, false)
    endif
                    [values] => Array
                        (
                            [explain] => On attack, there is a |cffFFFF8015%|r attack speed adjusted chance to both slow the target and increase quality of items dropped by |cffFFFF8010%|r. Lasts |cffFFFF803|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF800.4%|r slow and item quality
                            [visible] => true
                            [goldcost] => 1073
                            [name] => Cosmic Illumination
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
    BuffType moppy_starlight_spark_debuff
    ProjectileType moppy_starlight_spark_shot
    endglobals
    
    function moppy_starlight_spark_throw takes Projectile p, Unit target returns nothing
        call moppy_starlight_spark_debuff.applyCustomTimed(p.getCaster(), target, 0, 3)
    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()
        set moppy_starlight_spark_debuff = BuffType.create(0, 0, false)
        call m.addModification(MOD_MOVESPEED, -0.10, -0.004)
        call m.addModification(MOD_ITEM_QUALITY_ON_DEATH, 0.10, 0.004)
        call moppy_starlight_spark_debuff.setBuffModifier(m)
        call moppy_starlight_spark_debuff.setBuffIcon('@@0@@')
        set moppy_starlight_spark_shot = ProjectileType.create("Abilities\\Weapons\\SearingArrow\\SearingArrowMissile.mdl", 50, 1500)
        call moppy_starlight_spark_shot.enableHoming(moppy_starlight_spark_throw, 0.0)
	endfunction
                    [values] => Array
                        (
                            [explain] => 
                            [visible] => false
                            [goldcost] => 0
                            [name] => 
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
            [0] => Array
                (
                    [id] => @@0@@
                    [derivedFrom] => BNab
                    [oeValues] => Array
                        (
                            [EditorName] => Starlight Spark
                            [Buffubertip] => Slowed and increased quality of items dropped.
                            [TargetArt] => Abilities\Spells\Other\Incinerate\IncinerateBuff.mdl
                            [Bufftip] => Starlight Spark
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNStarfall.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)