Array
(
    [scriptVersion] => 8
    [oeValues] => Array
        (
            [Ubertip] => Viva la revolución! Fight the power!
            [Art] => ReplaceableTextures\CommandButtons\BTNLiquidFire.blp
            [abilList] => Array
                (
                )

            [Name] => Molotov Cocktail
        )

    [settings] => Array
        (
            [balanceTip] => Array
                (
                )

            [goldcost] => 2000
            [author] => Moppy
            [authorDisplay] => |c006969FFMoppy|r
            [version] => 1.0
            [rarity] => unique
        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Attack
                    [code] => local Tower t = itm.getCarrier()
    local Projectile p
    if t.calcChance((0.2 + (t.getLevel() * 0.004)) * t.getBaseAttackspeed()) == true then
        set p = Projectile.createFromUnitToUnit(moppy_molotov_bottle, t, 1, 0, t, Event.getTarget(), true, false, false)
    endif
                    [values] => Array
                        (
                            [explain] => On attack, there is a |cffFFFF8020%|r attack speed adjusted chance to set creeps aflame in |cffFFFF80200|r range around the target, dealing |cffFFFF802000|r spell damage per second for |cffFFFF803|r seconds. Deals |cffFFFF8033%|r more damage against humanoids and nature.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r chance|n|cffFFFF80+80|r spell damage
                            [visible] => true
                            [goldcost] => 2000
                            [name] => Molotov Cocktail
                            [ONATTACK_chance] => 1.0
                            [ONATTACK_chanceLevelAdd] => 0.0
                        )

                )

            [1] => Array
                (
                    [name] => Header
                    [code] => globals
        BuffType moppy_molotov_debuff
        ProjectileType moppy_molotov_bottle
    endglobals
    
    function moppy_molotov_damage takes Buff b returns nothing
        local Tower t = b.getCaster()
        local Unit c = b.getBuffedUnit()
            if c.getCategory() == CATEGORY_HUMANOID or c.getCategory() == CATEGORY_NATURE then
                call t.doSpellDamage(c, (2000 + t.getLevel() * 80) * 1.33, t.calcSpellCritNoBonus())
            else
                call t.doSpellDamage(c, (2000 + t.getLevel() * 80), t.calcSpellCritNoBonus())
            endif
    endfunction
    
    function moppy_molotov_throw takes Projectile p, Unit target returns nothing
        local Unit t = p.getCaster()
        local Iterate i = Iterate.overUnitsInRangeOfUnit(t, TARGET_TYPE_CREEPS, target, 200)
        loop
            set target = i.next()
            exitwhen target == 0
            call moppy_molotov_debuff.applyCustomTimed(t, target, 1, 3.01)
        endloop
    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_molotov_debuff = BuffType.create(3, 0, false)
        call moppy_molotov_debuff.setBuffModifier(m)
        call moppy_molotov_debuff.setBuffIcon('@@0@@')
        call moppy_molotov_debuff.addPeriodicEvent(EventHandler.moppy_molotov_damage, 1)
        set moppy_molotov_bottle = ProjectileType.create("Abilities\\Weapons\\BatTrollMissile\\BatTrollMissile.mdl", 50, 1500)
        call moppy_molotov_bottle.enableHoming(moppy_molotov_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] => Molotov Cocktail
                            [Buffubertip] => Receiving spell damage over time.
                            [TargetArt] => Environment\SmallBuildingFire\SmallBuildingFire2.mdl
                            [Bufftip] => Molotov Cocktail
                            [Buffart] => ReplaceableTextures\CommandButtons\BTNLiquidFire.blp
                        )

                )

        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)