Solar Collector v1
850
ID:
197
Family ID:
Author:
Boekie / D1000
Rarity:
rare
Element:
iron
Attack Type:
Energy
Attack Range:
800
Attack CD:
1
Damage:
468-468
Mana:
17
Mana regen:
1.5
Status:
Approved

Description:

A tower which transforms solar-energy in to pure force.
Specials:
10% spell crit chance (+0.5%/lvl)
x2 spell crit damage
+1 mana/lvl
+0.02 mana regen/lvl
Release Energy
Deals 4000 damage to the attacked creep and stuns it for 3 seconds (1 seconds on bosses).

Level Bonus:
+150 damage

AC_TYPE_OFFENSIVE_UNIT
 15, 800 range, 5s cooldown
Energetic Attack
Each attack costs 1 mana. Without mana the tower can't attack.
Download

Toggle Triggers

Autocast

caster_art: AUTOCAST_cooldown: 5 AUTOCAST_numBuffsBeforeIdle: 0 AUTOCAST_isExtended: false AUTOCAST_autocastType: AC_TYPE_OFFENSIVE_UNIT AUTOCAST_manacost: 15 AUTOCAST_range: 800 AUTOCAST_buffType: 0 AUTOCAST_targetSelf: true AUTOCAST_targetType: TARGET_TYPE_CREEPS target_art: AUTOCAST_autoRange: 800
private function onAutocast takes Tower tower returns nothing
   local Unit creep = Event.getTarget()
   local integer size = creep.getSize()
   call tower.doSpellDamage(creep,4000+(tower.getLevel()*150),tower.calcSpellCritNoBonus()) 
   call SFXOnUnit("Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl",creep.getUnit(),"origin") 
   if size < SIZE_BOSS then 
   call cb_stun.applyOnlyTimed(tower,creep,3) 
   else
   call cb_stun.applyOnlyTimed(tower,creep,1) 
   endif
endfunction

On Attack

ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
  local unit towerUnit = tower.getUnit()
  local real mana = GetUnitState(towerUnit, UNIT_STATE_MANA)
  if (mana < 1) then
    call tower.orderStop()
  else
    call SetUnitState(towerUnit , UNIT_STATE_MANA, mana-1)
  endif
  set towerUnit = null
endfunction
Solar Conductor v1
2500
ID:
198
Family ID:
Author:
Boekie
Rarity:
rare
Element:
iron
Attack Type:
Energy
Attack Range:
800
Attack CD:
1
Damage:
1375-1375
Mana:
17
Mana regen:
3
Status:
Approved

Description:

A tower which transforms solar-energy in to pure force.
Specials:
10% spell crit chance (+0.5%/lvl)
x2 spell crit damage
+2 mana/lvl
+0.04 mana regen/lvl
Release Energy
Deals 12000 damage to the attacked creep and stuns it for 5 seconds (1.75 seconds on bosses).

Level Bonus:
+450 damage

AC_TYPE_OFFENSIVE_UNIT
 15, 800 range, 5s cooldown
Energetic Attack
Each attack costs 2 mana. Without mana the tower can't attack.
Download

Toggle Triggers

Autocast

caster_art: AUTOCAST_cooldown: 5 AUTOCAST_numBuffsBeforeIdle: 0 AUTOCAST_isExtended: false AUTOCAST_autocastType: AC_TYPE_OFFENSIVE_UNIT AUTOCAST_manacost: 15 AUTOCAST_range: 800 AUTOCAST_buffType: 0 AUTOCAST_targetSelf: true AUTOCAST_targetType: TARGET_TYPE_CREEPS target_art: AUTOCAST_autoRange: 800
private function onAutocast takes Tower tower returns nothing
local Unit creep = Event.getTarget()
   local integer size = creep.getSize()
   call tower.doSpellDamage(creep,12000+(tower.getLevel()*450),tower.calcSpellCritNoBonus()) 
   call SFXOnUnit("Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl",creep.getUnit(),"origin") 
   if size < SIZE_BOSS then 
   call cb_stun.applyOnlyTimed(tower,creep,5) 
   else
   call cb_stun.applyOnlyTimed(tower,creep,1.75) 
   endif
endfunction

On Attack

ONATTACK_chance: 1.0 ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
  local unit towerUnit = tower.getUnit()
  local real mana = GetUnitState(towerUnit, UNIT_STATE_MANA)
  if (mana < 2) then
    call tower.orderStop()
  else
    call SetUnitState(towerUnit , UNIT_STATE_MANA, mana-2)
  endif
  set towerUnit = null
endfunction