Red Ball Lightning v1
1200
ID:
288
Family ID:
Author:
SirCoqaLot.
Rarity:
rare
Element:
storm
Attack Type:
Energy
Attack Range:
1200
Attack CD:
1.65
Damage:
228-677
Abil. Factor:
0.3
Status:
Approved

Description:

Quite an advanced construction for its times. It harbors a pulsating red crystal at its center, which has been rumored to drive lesser beings insane.

Latest Upload Comment:

Restored from 1.10
Specials:
Bounce attack:
   2 targets
   -60% damage per bounce
Lightning Shock
This tower has a 30% chance to deal 1200 spell damage to its target, whenever it deals damage. This ability has a 10% bonus chance to crit with 60% bonus damage.

Level Bonus:
+0.5% chance
+48 damage
Lightning Charge
Towers in 250 range have their spell damage increased by 20%.

Level Bonus:
+0.4% spell damage
Download

Toggle Triggers

Header

    globals
        //@export
        BuffType sir_spell_aura
    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 m = Modifier.create()
    set sir_spell_aura = BuffType.createAuraEffectType(true)
    call m.addModification(MOD_SPELL_DAMAGE_DEALT,0.0,0.0001)
    call sir_spell_aura.setBuffModifier(m)
    call sir_spell_aura.setBuffIcon('@@0@@')
    
    endfunction

On Damage

ONDAMAGE_chance: 0.3 ONDAMAGE_chanceLevelAdd: 0.005
function onDamage takes Tower tower returns nothing
    local Unit creep = Event.getTarget()
    call Lightning.createFromUnitToUnit("AFOD", tower, creep).setLifetime(0.2)
    call tower.doSpellDamage(creep,1200*(1+tower.getLevel()*0.04),tower.calcSpellCrit(0.1,0.6))
endfunction

Tower Aura

AURA_auraEffect: sir_spell_aura AURA_power: 2000 AURA_level: 2000 AURA_auraRange: 250 AURA_targetType: TARGET_TYPE_TOWERS AURA_levelAdd: 40 AURA_powerAdd: 40 AURA_targetSelf: true