Broken Circle of Wind v1
50
ID:
312
Family ID:
Author:
SternBogen / Natac & girlfriend
Rarity:
uncommon
Element:
storm
Attack Type:
Physical
Attack Range:
1100
Attack CD:
1.4
Damage:
54-56
Status:
Approved

Description:

Strong gusts of wind often linger around these ruins.
Specials:
+70% dmg to air (+2%/lvl)
Wind of Death
On attack this tower has a 20% chance to catch a ground, non-boss unit in a cyclone for 0.5 seconds, dealing 20 physical damage to all units in 300 AoE when it falls back down. Falling champions deal 25% more damage. 

Level Bonus:
+2 damage
+0.3% chance to catch
Download

Toggle Triggers

Header

    globals
        //@export
        BuffType sternbogen_broken_wind
    endglobals
    
    // Creep got buffed -> move creep up
    function cyclone_creep_up takes Buff b returns nothing
        local Creep c = b.getBuffedUnit()
        // (start) cyclone animation
        set b.userInt = Effect.createAnimated("Abilities\\Spells\\NightElf\\Cyclone\\CycloneTarget.mdl", c.getX(), c.getY(), 0.0, 0.0)
        call Effect(b.userInt).noDeathAnimation()
        // move creep up
        call c.adjustHeight(300, 1000)
    endfunction 
    
    // turn the creep (cyclone) -> Periodic event
    function cyclone_creep_turn takes Buff b returns nothing 
        local unit real_unit = b.getBuffedUnit().getUnit()
        call SetUnitFacing(real_unit, GetUnitFacing(real_unit) + 150.0)
        set real_unit = null
    endfunction 
    

    
    // move creep down and do damage
    function cyclone_creep_down takes Buff b returns nothing 
        local Tower t = b.getCaster()
        local Creep c = b.getBuffedUnit()
        local real ratio = 1
        // set units back (down)
        call c.adjustHeight(-300, 2500)
        // remove the cyclone
        call Effect(b.userInt).destroy()
        // effects
        call Effect.createSimpleAtUnit("Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl", c).destroy()
        call Effect.createSimpleAtUnit("Abilities\\Weapons\\Bolt\\BoltImpact.mdl", c).destroy()
        // do damage
        if c.getSize() == SIZE_CHAMPION then
            set ratio = 1.25
        endif
        call t.doAttackDamageAoEUnit(c, ratio * 300.0, b.userReal3, t.calcAttackMulticrit(0,0,0), 0.0)
    endfunction
    
    private function init takes nothing returns nothing
        set sternbogen_broken_wind = BuffType.createDuplicate(cb_stun, 1.0, 0, false)
        call sternbogen_broken_wind.setBuffIcon('@@0@@')
        
        // on creation on buff ON the creep -> lift unit up
        call sternbogen_broken_wind.addEventOnCreate(cyclone_creep_up)
        // during buffed: periodic -> rotate creep
        call sternbogen_broken_wind.addPeriodicEvent(cyclone_creep_turn, 0.1)
        // buff ends -> unit down, damage or if creep gets killed while lift up
        call sternbogen_broken_wind.addEventOnCleanup(cyclone_creep_down)

    endfunction

On Attack

ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
  
    local Creep target = Event.getTarget()
    local real damage = 20 + 2 * tower.getLevel()
    local Buff b
    if (target.getSize() == SIZE_MASS or target.getSize() == SIZE_NORMAL or target.getSize() == SIZE_CHAMPION) then
        if(tower.calcChance(0.20 + (0.003 * tower.getLevel()))) then
            set b = target.getBuffOfType(sternbogen_broken_wind)
            if b != 0 then
                set damage = RMaxBJ(b.userReal3, damage)
            endif
            set b = sternbogen_broken_wind.applyCustomTimed(tower, target, tower.getLevel(), 0.5)
            if b != 0 then
                set b.userReal3 = damage
            endif
        endif
    endif 
endfunction
Circle of Wind v1
170
ID:
313
Family ID:
Author:
SternBogen / Natac & girlfriend
Rarity:
uncommon
Element:
storm
Attack Type:
Physical
Attack Range:
1100
Attack CD:
1.4
Damage:
184-184
Status:
Approved

Description:

Strong gusts of wind often linger around these ruins.
Specials:
+70% dmg to air (+2%/lvl)
Wind of Death
On attack this tower has a 22% chance to catch a ground, non-boss unit in a cyclone for 0.6 seconds, dealing 68 physical damage to all units in 300 AoE when it falls back down. Falling champions deal 25% more damage. 

Level Bonus:
+7 damage
+0.4% chance to catch
Download

Toggle Triggers

Header

    globals
        //@import
        BuffType sternbogen_broken_wind
    endglobals
    
    private function init takes nothing returns nothing
    endfunction

On Attack

ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
  
    local Creep target = Event.getTarget()
    local real damage = 68 + 7 * tower.getLevel()
    local Buff b
    if (target.getSize() == SIZE_MASS or target.getSize() == SIZE_NORMAL or target.getSize() == SIZE_CHAMPION) then
        if(tower.calcChance(0.22 + (0.004 * tower.getLevel()))) then
            set b = target.getBuffOfType(sternbogen_broken_wind)
            if b != 0 then
                set damage = RMaxBJ(b.userReal3, damage)
            endif
            set b = sternbogen_broken_wind.applyCustomTimed(tower, target, tower.getLevel(), 0.6)
            if b != 0 then
                set b.userReal3 = damage
            endif
        endif
    endif 
endfunction
Circle of Storm v1
490
ID:
314
Family ID:
Author:
SternBogen / Natac & girlfriend
Rarity:
uncommon
Element:
storm
Attack Type:
Physical
Attack Range:
1100
Attack CD:
1.4
Damage:
526-534
Status:
Approved

Description:

Strong gusts of wind often linger around these ruins.
Specials:
+70% dmg to air (+2%/lvl)
Wind of Death
On attack this tower has a 24% chance to catch a ground, non-boss unit in a cyclone for 0.7 seconds, dealing 196 physical damage to all units in 300 AoE when it falls back down. Falling champions deal 25% more damage. 

Level Bonus:
+20 damage
+0.5% chance to catch
Download

Toggle Triggers

Header

    globals
        //@import
        BuffType sternbogen_broken_wind
    endglobals
    
    private function init takes nothing returns nothing
    endfunction

On Attack

ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
  
    local Creep target = Event.getTarget()
    local real damage = 196 + 20 * tower.getLevel()
    local Buff b
    if (target.getSize() == SIZE_MASS or target.getSize() == SIZE_NORMAL or target.getSize() == SIZE_CHAMPION) then
        if(tower.calcChance(0.24 + (0.005 * tower.getLevel()))) then
            set b = target.getBuffOfType(sternbogen_broken_wind)
            if b != 0 then
                set damage = RMaxBJ(b.userReal3, damage)
            endif
            set b = sternbogen_broken_wind.applyCustomTimed(tower, target, tower.getLevel(), 0.7)
            if b != 0 then
                set b.userReal3 = damage
            endif
        endif
    endif 
endfunction
Orcan Circle v1
1500
ID:
315
Family ID:
Author:
SternBogen / Natac & girlfriend
Rarity:
uncommon
Element:
storm
Attack Type:
Physical
Attack Range:
1100
Attack CD:
1.4
Damage:
1600-1611
Status:
Approved

Description:

Strong gusts of wind often linger around these ruins.
Specials:
+70% dmg to air (+2%/lvl)
Wind of Death
On attack this tower has a 26% chance to catch a ground, non-boss unit in a cyclone for 0.8 seconds, dealing 600 physical damage to all units in 300 AoE when it falls back down. Falling champions deal 25% more damage. 

Level Bonus:
+60 damage
+0.6% chance to catch
Download

Toggle Triggers

Header

    globals
        //@import
        BuffType sternbogen_broken_wind
    endglobals
    
    private function init takes nothing returns nothing
    endfunction

On Attack

ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
  
    local Creep target = Event.getTarget()
    local real damage = 600 + 60 * tower.getLevel()
    local Buff b
    if (target.getSize() == SIZE_MASS or target.getSize() == SIZE_NORMAL or target.getSize() == SIZE_CHAMPION) then
        if(tower.calcChance(0.26 + (0.006 * tower.getLevel()))) then
            set b = target.getBuffOfType(sternbogen_broken_wind)
            if b != 0 then
                set damage = RMaxBJ(b.userReal3, damage)
            endif
            set b = sternbogen_broken_wind.applyCustomTimed(tower, target, tower.getLevel(), 0.8)
            if b != 0 then
                set b.userReal3 = damage
            endif
        endif
    endif 
endfunction
Hurricane Circle v1
2800
ID:
316
Family ID:
Author:
SternBogen / Natac & girlfriend
Rarity:
uncommon
Element:
storm
Attack Type:
Physical
Attack Range:
1100
Attack CD:
1.4
Damage:
2953-2967
Status:
Approved

Description:

Strong gusts of wind often linger around these ruins.
Specials:
+70% dmg to air (+2%/lvl)
Wind of Death
On attack this tower has a 28% chance to catch a ground, non-boss unit in a cyclone for 1 second, dealing 1120 physical damage to all units in 300 AoE when it falls back down. Falling champions deal 25% more damage. 

Level Bonus:
+112 damage
+0.7% chance to catch
Download

Toggle Triggers

Header

    globals
        //@import
        BuffType sternbogen_broken_wind
    endglobals
    
    private function init takes nothing returns nothing
    endfunction

On Attack

ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
  
    local Creep target = Event.getTarget()
    local real damage = 1120 + 112 * tower.getLevel()
    local Buff b
    if (target.getSize() == SIZE_MASS or target.getSize() == SIZE_NORMAL or target.getSize() == SIZE_CHAMPION) then
        if(tower.calcChance(0.28 + (0.007 * tower.getLevel()))) then
            set b = target.getBuffOfType(sternbogen_broken_wind)
            if b != 0 then
                set damage = RMaxBJ(b.userReal3, damage)
            endif
            set b = sternbogen_broken_wind.applyCustomTimed(tower, target, tower.getLevel(), 1.0)
            if b != 0 then
                set b.userReal3 = damage
            endif
        endif
    endif 
endfunction