Small Torch v1
70
ID:
226
Family ID:
Author:
Boekie
Rarity:
common
Element:
fire
Attack Type:
Elemental
Attack Range:
900
Attack CD:
0.9
Damage:
48-48
Mana:
25
Mana regen:
2
Status:
Approved

Description:

This tower uses magical flames to strike multiple targets.
Fire Blast
Releases a blast of fire that strikes all targets in 200 AoE around the main target for 60 damage. 

Level Bonus:
+3 damage.

AC_TYPE_OFFENSIVE_UNIT
 20, 900 range, 1s cooldown
Download

Toggle Triggers

Autocast

caster_art: AUTOCAST_cooldown: 1 AUTOCAST_numBuffsBeforeIdle: 0 AUTOCAST_isExtended: false AUTOCAST_autocastType: AC_TYPE_OFFENSIVE_UNIT AUTOCAST_manacost: 20 AUTOCAST_range: 900 AUTOCAST_buffType: 0 AUTOCAST_targetSelf: false AUTOCAST_targetType: 0 target_art: AUTOCAST_autoRange: 900
private function onAutocast takes Tower tower returns nothing
call SFXAtUnit("Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl",Event.getTarget().getUnit())  
call tower.doSpellDamageAoEUnit(Event.getTarget(), 200, 60 + tower.getLevel() * 3, tower.calcSpellCritNoBonus(), 0.0) 
endfunction
Broken Lightning Rod v1
70
ID:
231
Family ID:
Author:
Boekie
Rarity:
common
Element:
storm
Attack Type:
Energy
Attack Range:
1200
Attack CD:
1.2
Damage:
47-66
Mana:
25
Mana regen:
2
Status:
Approved

Description:

A storm tower that releases a magic lighting bolt.
Release Lightning
This tower releases a lightning bolt that strikes the target for 70 damage. 

Level Bonus:
+3.5 damage.

AC_TYPE_OFFENSIVE_UNIT
 20, 1200 range, 1s cooldown
Download

Toggle Triggers

Autocast

caster_art: AUTOCAST_cooldown: 1 AUTOCAST_numBuffsBeforeIdle: 0 AUTOCAST_isExtended: false AUTOCAST_autocastType: AC_TYPE_OFFENSIVE_UNIT AUTOCAST_manacost: 20 AUTOCAST_range: 1200 AUTOCAST_buffType: 0 AUTOCAST_targetSelf: false AUTOCAST_targetType: 0 target_art: AUTOCAST_autoRange: 1200
private function onAutocast takes Tower tower returns nothing
local Unit creep = Event.getTarget() 
call tower.doSpellDamage(creep,70.0+(tower.getLevel()*3.5),tower.calcSpellCritNoBonus()) 
call SFXOnUnit("Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl",creep.getUnit(),"origin") 
endfunction
Magnataur Warrior v1
70
ID:
235
Family ID:
Author:
drol/imOckdeath
Rarity:
uncommon
Element:
ice
Attack Type:
Elemental
Attack Range:
900
Attack CD:
1.7
Damage:
110-121
Status:
Approved

Description:

Roaming on the Frozen Wastes, the Magnataur Warrior seeks new challenges to beat.
Frozen Spears
Has a 10% chance to deal 50% more damage and stun the target for 0.5 seconds.

Level Bonus:
+1% damage 
+0.01 seconds
Download

Toggle Triggers

On Damage

ONDAMAGE_chance: 0.1 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
    local Unit creep = Event.getTarget()
    local real level = tower.getLevel()
    if Event.isMainTarget() == true then
        set Event.damage = Event.damage*(1.5+(.01*level))
        call SFXAtUnit("Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl", creep.getUnit())
        call cb_stun.applyOnlyTimed(tower, creep, 0.5+tower.getLevel()*0.01)
        call tower.getOwner().displaySmallFloatingText(I2S(R2I(Event.damage)),tower,255,150,150,0)
    endif
endfunction
Stormy Dog v1
70
ID:
242
Family ID:
Author:
cedi
Rarity:
uncommon
Element:
storm
Attack Type:
Energy
Attack Range:
900
Attack CD:
1.5
Damage:
95-103
Status:
Approved

Description:

Do you hear the howl of the storm?
Thunderous Roar
Whenever this tower damages a unit it has 30% chance to release a battle cry. The cry increases the attack speed of all towers in 420 range by 5% for 5 seconds. If a tower already has the thunderous roar buff the attack speed is increased by 0.3% and the duration is refreshed. Stacks up to 100 times.

Level Bonus:
+0.3% attack speed
Download

Toggle Triggers

Header

    globals
        //@export
        BuffType cedi_stormdog
    endglobals
    
    //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 = Modifier.create()
        call mod.addModification( MOD_ATTACKSPEED, 0.05, 0.0005 ) //*6 was 0.003 before
        
        set cedi_stormdog = BuffType.create( 5.0, 0.0, true )
        call cedi_stormdog.setBuffIcon( '@@1@@' )
        call cedi_stormdog.setBuffModifier( mod )
    endfunction

On Damage

ONDAMAGE_chance: 0.3 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
    local Iterate I = Iterate.overUnitsInRangeOfCaster( tower, TARGET_TYPE_TOWERS, 420.0 )
    local Unit U 
    local Buff B
    call DestroyEffect( AddSpecialEffectTarget( "Abilities\\Spells\\NightElf\\Taunt\\TauntCaster.mdl", tower.getUnit(), "origin" ) )
    loop
        set U = I.next()
        exitwhen U == 0
        set B = U.getBuffOfType( cedi_stormdog )
        if B != 0 then
            if B.userInt < 100 then
                call cedi_stormdog.apply( tower, U, B.getLevel() + 6 )
                set B.userInt = B.userInt + 1
            else
                call B.refreshDuration()
            endif
        else
            set B = cedi_stormdog.apply( tower, U, tower.getLevel() * 6 )
            set B.userInt = 0
        endif
    endloop
endfunction
Cloud Warrior v1
70
ID:
272
Family ID:
Author:
i_mOck_death
Rarity:
uncommon
Element:
storm
Attack Type:
Energy
Attack Range:
840
Attack CD:
2.1
Damage:
58-127
Status:
Approved

Description:

A warrior trained high in the sky.
Specials:
Bounce attack:
   2 targets
   -0% damage per bounce
Lightning Strike
Whenever this tower's attack does not bounce it shoots down a delayed lightning bolt onto the target. The lightning bolt deals 100 Energy damage.

Level Bonus:
+5 damage
Download

Toggle Triggers

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
    local Unit creep = Event.getTarget()
    local integer cid = creep.getUID()
    if Event.isMainTarget()  == true then
        set tower.userInt = 1
    else
        set tower.userInt = 0
    endif
    call TriggerSleepAction(.4)
    if tower.userInt == 1 and creep.getUID() == cid then
         call SFXAtUnit("Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl",creep.getUnit())
         call tower.doAttackDamage(creep,100+(5*tower.getLevel()),tower.calcAttackMulticrit(0.0,0.0,0))
    endif
endfunction

On Tower Creation

function onCreate takes Tower tower returns nothing
set tower.userInt = 0
endfunction
Small Ray Blaster v1
150
ID:
305
Family ID:
Author:
i_mOck_death
Rarity:
uncommon
Element:
iron
Attack Type:
Energy
Attack Range:
800
Attack CD:
1.4
Damage:
79-98
Status:
Approved

Description:

Uncommon iron tower that leaves a debuff on the enemy unit that increases item drop quality and chance of an item drop.
Phaze
Whenever this tower damages a creep it increases its item drop chance and item drop quality by 5% for 5 seconds. 

Level Bonus:
 +0.3% item drop quality 
 +0.3% item drop chance 
 +0.1 seconds
Download

Toggle Triggers

Header

            globals
        //@export
        BuffType mOck_rayBlaster
    endglobals
    
    //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 ironMod = Modifier.create()
        set   mOck_rayBlaster = BuffType.create(0,0,false)//uses custom time nubz is gay
        call  ironMod.addModification(MOD_ITEM_QUALITY_ON_DEATH,0.0,0.0001)
        call  ironMod.addModification(MOD_ITEM_CHANCE_ON_DEATH,0.0,0.0001)
        call  mOck_rayBlaster.setBuffModifier(ironMod)
        call  mOck_rayBlaster.setBuffIcon('@@0@@') 
    endfunction
        

On Damage

ONDAMAGE_chance: 1.0 ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
            
call mOck_rayBlaster.applyCustomTimed(tower,Event.getTarget(),500 + 30 * tower.getLevel(),5+tower.getLevel()*0.1)
        
endfunction
Small Frost Fire v1
70
ID:
364
Family ID:
Author:
IamanEvilMan
Rarity:
common
Element:
darkness
Attack Type:
Essence
Attack Range:
900
Attack CD:
0.9
Damage:
46-46
Mana:
25
Mana regen:
2
Status:
Approved

Description:

This tower uses mana to summon coldfire from the Frozen Heart of Hell for minor AoE damage and slowing effect. Stolen souls improve this ability with each tower level.
Specials:
-25% dmg to undead (+0.2%/lvl)
Soul Chill
Chills the souls of all creeps in 250 AoE of the target, dealing 50 spelldamage and slowing them by 5% for 4 seconds. 

Level Bonus:
+2 damage 
+0.2% slow 
+0.02 seconds duration

AC_TYPE_OFFENSIVE_UNIT
 20, 900 range, 1s cooldown
Download

Toggle Triggers

Autocast

AUTOCAST_cooldown: 1 AUTOCAST_autoRange: 900 AUTOCAST_manacost: 20 AUTOCAST_range: 900 AUTOCAST_targetType: 0 AUTOCAST_numBuffsBeforeIdle: 2 caster_art: target_art: Abilities\Spells\Undead\RaiseSkeletonWarrior\RaiseSkeleton.mdl AUTOCAST_autocastType: AC_TYPE_OFFENSIVE_UNIT AUTOCAST_buffType: soul_chill AUTOCAST_isExtended: false AUTOCAST_targetSelf: false
private function onAutocast takes Tower tower returns nothing
    local Unit targ = Event.getTarget()
    local Iterate it = Iterate.overUnitsInRangeOfUnit(tower,TARGET_CREEPS,targ,250)
    local Unit next

    local real calculated_slow = 50 + tower.getLevel() * 2
    local real duration = 4.0 + tower.getLevel() * 0.02
    local real spelldmg = 50 + tower.getLevel() * 2 
    
loop

    set next = it.next()
    exitwhen next == 0
    call soul_chill.applyCustomTimed(tower, next, R2I(calculated_slow), duration)
    call tower.doSpellDamage(next, spelldmg, tower.calcSpellCritNoBonus())

endloop

    call SFXAtUnit("Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl", targ.getUnit())
endfunction

Header

globals
    //@export
    BuffType soul_chill   
endglobals
    
private function init takes nothing returns nothing

    local Modifier slow=Modifier.create()
    call slow.addModification(MOD_MOVESPEED, 0, -0.001)
    set soul_chill=BuffType.create(0, 0, false)
    call soul_chill.setBuffIcon('@@0@@')
    call soul_chill.setBuffModifier(slow)
    
endfunction