Lightning Eye v1
3000
|
ID: 167
Family ID:
Author: i_mOck_death
Rarity: unique
Element: storm
Attack Type: Energy
Attack Range: 800
Attack CD: 1.5
Damage: 1757-1757
Mana: 200
Mana regen: 4
Status: Approved
|
Specials:
-10% dmg to bosses
Glare
The Eye launches a forked lightning on every attack at the cost of 40 mana. The forked lightning deals 500 plus 1.5% of the original target's current health as spell damage. The forked lightning hits up to 3 creeps. Level Bonus: +120 spell damage
Static Field - Aura
Towers within 350 range of this tower have their damage increased by 20% when attacking immune creeps. Level Bonus: +1% damage |
Download
Toggle Triggers Header globals
Cast Swave
BuffType mOck_staticField
endglobals
function staticP takes Buff b returns nothing
local Tower tower = b.getCaster()
local Tower towero = b.getBuffedUnit()
local Unit target = Event.getTarget()
if target.isImmune() then
set Event.damage = Event.damage*(1.2+.01*tower.getLevel())
endif
endfunction
private function init takes nothing returns nothing
set Swave = Cast.create('@@0@@',"forkedlightning",1)
set mOck_staticField = BuffType.createAuraEffectType(true)
call mOck_staticField.setBuffIcon('@@1@@')
call mOck_staticField.addEventOnDamage(staticP,1.0, 0.0)
endfunction
On Attack
ONATTACK_chance: 1.0
ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Tower tower returns nothing
local Creep creep = Event.getTarget()
local unit toweru= tower.getUnit()
local unit creepu = creep.getUnit()
local real life = GetUnitState(creepu,UNIT_STATE_LIFE)
local real mp = GetUnitState(toweru,UNIT_STATE_MANA)
local integer level = tower.getLevel()
if mp >= 40 then
call SetUnitState(toweru , UNIT_STATE_MANA, mp-40)
call Swave.targetCastFromCaster(tower,creep,(500+level*120)+(life*(.015)),tower.calcSpellCritNoBonus())
endif
set toweru = null
set creepu = null
endfunction
Tower Aura
AURA_auraEffect: mOck_staticField
AURA_power: 0
AURA_level: 0
AURA_auraRange: 350
AURA_targetType: TARGET_TYPE_TOWERS
AURA_levelAdd: 1
AURA_powerAdd: 1
AURA_targetSelf: true
|
Description: