Array
(
    [scriptVersion] => 7
    [oeValues] => Array
        (
            [RngBuff1] => 250
            [MissileHoming] => 1
            [Upgrade] => Array
                (
                )

            [targs1] => Array
                (
                )

            [goldcost] => 70
            [weapsOn] => 1
            [dice1] => 1
            [Missilespeed] => 1500
            [file] => buildings\orc\TrollBurrow\TrollBurrow.mdl
            [atkType1] => siege
            [modelScale] => 0.8
            [weapTp1] => missile
            [acquire] => 800
            [rangeN1] => 700
            [upgrades] => Array
                (
                )

            [cool1] => 3
            [Ubertip] => A burrow with Peons inside, which will try to break through every armor.
            [abilList] => Array
                (
                )

            [launchZ] => 48
            [Name] => Burrow
            [Missileart] => abilities\weapons\huntermissile\huntermissile.mdl
            [Art] => ReplaceableTextures\CommandButtons\BTNTrollBurrow.blp
            [buildingShadow] => ShadowTrollBurrow
            [unitSound] => TrollBurrow
            [sides1] => 1
            [uberSplat] => OSMA
            [auto] => Array
                (
                )

            [dmgplus1] => 288
            [bldtm] => 1
        )

    [settings] => Array
        (
            [author] => tolleder
            [element] => iron
            [authorDisplay] => tolleder
            [alpha] => 255
            [balanceTip] => Array
                (
                )

            [rarity] => uncommon
            [version] => 1.0
            [abil_factor] => 0.95
        )

    [effects] => Array
        (
        )

    [dmgTable] => Array
        (
        )

    [triggers] => Array
        (
            [0] => Array
                (
                    [name] => On Damage
                    [code] => local real curRatio=0.1+0.004*tower.getLevel()
    local real sDmg=Event.damage
    local real damageBase=Event.damage
    local Creep target=Event.getTarget()
    local real temp = AttackType.PHYSICAL.getDamageAgainst(target.getArmorType())
    
    if temp > 0. and temp < 1. then //ignoring armor type "resistance" not weakness :P
        set damageBase = damageBase / temp 
    endif
    
    set temp = (1 - target.getCurrentArmorDamageReduction())
    if temp > 0. then
        set damageBase = damageBase / temp 
    endif 
    
    if sDmg < damageBase then
        set Event.damage=damageBase*curRatio+sDmg*(1.-curRatio)
    endif
    //The engine calculates critical strike extra damage ***AFTER*** the onDamage event, so there is no need to care about it in this trigger.
                    [values] => Array
                        (
                            [ONDAMAGE_chance] => 1.0
                            [icon] => ReplaceableTextures\CommandButtons\BTNVorpalBlades.blp
                            [visible] => true
                            [name] => Piercing Shot
                            [short_explain] => A part of the attack damage cannot be reduced by armor resistances.
                            [ONDAMAGE_chanceLevelAdd] => 0.0
                            [long_explain] => |cffFFFF8010%|r of this tower's attack damage cannot be reduced by armor resistances.|n|n|cffFF8000Level Bonus:|r|n+|cffFFFF800.4%|r damage ratio
                        )

                )

        )

    [abilities] => Array
        (
        )

    [buffs] => Array
        (
        )

    [units] => Array
        (
        )

    [references] => Array
        (
        )

)