Burrow v1
70
|
ID: 186
Family ID:
Author: tolleder
Rarity: uncommon
Element: iron
Attack Type: Physical
Attack Range: 700
Attack CD: 3
Damage: 289-289
Status: Approved
|
Piercing Shot
10% of this tower's attack damage cannot be reduced by armor resistances. Level Bonus: +0.4% damage ratio |
Download
Toggle Triggers On Damage
ONDAMAGE_chance: 1.0
ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local real curRatio=0.1+0.004*tower.getLevel()
local real sDmg=Event.damage
local real damageBase=Event.damage
local Creep target=Event.getTarget()
local real temp = AttackType.PHYSICAL.getDamageAgainst(target.getArmorType())
if temp > 0. and temp < 1. then //ignoring armor type "resistance" not weakness :P
set damageBase = damageBase / temp
endif
set temp = (1 - target.getCurrentArmorDamageReduction())
if temp > 0. then
set damageBase = damageBase / temp
endif
if sDmg < damageBase then
set Event.damage=damageBase*curRatio+sDmg*(1.-curRatio)
endif
//The engine calculates critical strike extra damage ***AFTER*** the onDamage event, so there is no need to care about it in this trigger.
endfunction
|
Reinforced Burrow v1
400
|
ID: 189
Family ID:
Author: tolleder
Rarity: uncommon
Element: iron
Attack Type: Physical
Attack Range: 700
Attack CD: 3
Damage: 1546-1546
Status: Approved
|
Description: A burrow with elite Peons inside, which will try to break through every armor.
Piercing Shot
20% of this tower's attack damage cannot be reduced by armor resistances. Level Bonus: +0.8% damage ratio |
Download
Toggle Triggers On Damage
ONDAMAGE_chance: 1.0
ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local real curRatio=0.2+0.008*tower.getLevel()
local real sDmg=Event.damage
local real damageBase=Event.damage
local Creep target=Event.getTarget()
local real temp = AttackType.PHYSICAL.getDamageAgainst(target.getArmorType())
if temp > 0. and temp < 1. then //ignoring armor type "resistance" not weakness :P
set damageBase = damageBase / temp
endif
set temp = (1 - target.getCurrentArmorDamageReduction())
if temp > 0. then
set damageBase = damageBase / temp
endif
if sDmg < damageBase then
set Event.damage=damageBase*curRatio+sDmg*(1.-curRatio)
endif
//The engine calculates critical strike extra damage ***AFTER*** the onDamage event, so there is no need to care about it in this trigger.
endfunction
|
Fortified Burrow v1
1200
|
ID: 187
Family ID:
Author: tolleder
Rarity: uncommon
Element: iron
Attack Type: Physical
Attack Range: 700
Attack CD: 3
Damage: 4274-4274
Status: Approved
|
Description: A burrow with Troll Head Hunters inside, which will try to break through every armor.
Piercing Shot
30% of this tower's attack damage cannot be reduced by armor resistances. Level Bonus: +1.2% damage ratio |
Download
Toggle Triggers On Damage
ONDAMAGE_chance: 1.0
ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local real curRatio=0.3+0.012*tower.getLevel()
local real sDmg=Event.damage
local real damageBase=Event.damage
local Creep target=Event.getTarget()
local real temp = AttackType.PHYSICAL.getDamageAgainst(target.getArmorType())
if temp > 0. and temp < 1. then //igoniring armor type "resistance" not weakness :P
set damageBase = damageBase / temp
endif
set temp = (1 - target.getCurrentArmorDamageReduction())
if temp > 0. then
set damageBase = damageBase / temp
endif
if sDmg < damageBase then
set Event.damage=damageBase*curRatio+sDmg*(1.-curRatio)
endif
//The engine calculates critical strike extra damage ***AFTER*** the onDamage event, so there is no need to care about it in this trigger.
endfunction
|
Magic Enhanced Burrow v1
2500
|
ID: 188
Family ID:
Author: tolleder
Rarity: uncommon
Element: iron
Attack Type: Physical
Attack Range: 700
Attack CD: 3
Damage: 8035-8035
Status: Approved
|
Description: A burrow with Troll Berserkers inside, which will break through every armor.
Piercing Shot
40% of this tower's attack damage cannot be reduced by armor resistances. Level Bonus: +1.6% damage ratio |
Download
Toggle Triggers On Damage
ONDAMAGE_chance: 1.0
ONDAMAGE_chanceLevelAdd: 0.0
function onDamage takes Tower tower returns nothing
local real curRatio=0.4+0.016*tower.getLevel()
local real sDmg=Event.damage
local real damageBase=Event.damage
local Creep target=Event.getTarget()
local real temp = AttackType.PHYSICAL.getDamageAgainst(target.getArmorType())
if temp > 0. and temp < 1. then //igoniring armor type "resistance" not weakness :P
set damageBase = damageBase / temp
endif
set temp = (1 - target.getCurrentArmorDamageReduction())
if temp > 0. then
set damageBase = damageBase / temp
endif
if sDmg < damageBase then
set Event.damage=damageBase*curRatio+sDmg*(1.-curRatio)
endif
//The engine calculates critical strike extra damage ***AFTER*** the onDamage event, so there is no need to care about it in this trigger.
endfunction
|
Description: