Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[Ubertip] => Did somebody say...?
[Art] => ReplaceableTextures\CommandButtons\BTNSwordOfZeal.blp
[abilList] => Array
(
)
[Name] => Thunderfury, Blessed Blade of the Windseeker
)
[settings] => Array
(
[balanceTip] => |n|cffFFFF80Specials:|r|n|cffFFFF00+539|r dps
[goldcost] => 3000
[author] => Ashbringer
[authorDisplay] => |cffff6600Ashbringer|r
[version] => 1.0
[rarity] => unique
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_DPS_ADD
[base] => 539
[add] => 0
)
)
[triggers] => Array
(
[0] => Array
(
[name] => On Attack
[code] => local Tower tower = itm.getCarrier()
local Unit previous = tower
local Unit next = Event.getTarget()
local Unit temp
local Iterate i
local real damage = 3.0 * tower.getCurrentAttackDamageWithBonus()
local integer chains = 4
local real closest
local real x
local real y
local real distance
local Unit array hitted
local boolean already_hit
local integer count
loop
exitwhen next == 0
call Lightning.createFromUnitToUnit("ZAP1", previous, next).setLifetime(0.3)
call tower.doCustomAttackDamage(next, damage, tower.calcAttackMulticrit(0, 0, 0), AttackType.ESSENCE)
call ashbringer_thunderfury_buff.apply(tower, next, 0)
call Effect.createSimpleOnUnit("Abilities\\Weapons\\Bolt\\BoltImpact.mdl", next, "origin").destroy()
set hitted[chains] = next
set closest = 99999
set x = next.getX()
set y = next.getY()
set previous = next
set next = 0
set chains = chains - 1
exitwhen chains < 0
set i = Iterate.overUnitsInRangeOfUnit(tower, TARGET_TYPE_CREEPS, previous, 450)
loop
set temp = i.next()
exitwhen temp == 0
set already_hit = false
set count = 4
loop
if temp == hitted[count] then
set already_hit = true
endif
set count = count - 1
exitwhen count < 0
endloop
if not already_hit then
set distance = DistanceBetweenPoints(Location(x, y), Location(temp.getX(), temp.getY()))
if distance < closest then
set closest = distance
set next = temp
endif
endif
endloop
endloop
[values] => Array
(
[explain] => Attacks have a |cffFFFF805%|r chance to blast the target with lightning that chains to up to |cffFFFF804|r additional enemies, dealing |cffFFFF80300%|r of attack damage as |cff80FF00Essence|r damage and increasing damage taken from |cFF80FF00Nature|r and |cFF8080FFStorm|r towers by |cffFFFF8025%|r for |cffFFFF8012|r seconds.
[visible] => true
[goldcost] => 2461
[name] => Thunderfury
[ONATTACK_chance] => 0.05
[ONATTACK_chanceLevelAdd] => 0.0
)
)
[1] => Array
(
[name] => Header
[code] => globals
BuffType ashbringer_thunderfury_buff
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 mod = Modifier.create()
set ashbringer_thunderfury_buff = BuffType.create(12, 0, false)
call ashbringer_thunderfury_buff.setBuffIcon('@@0@@')
call mod.addModification(MOD_DMG_FROM_NATURE, 0.25, 0)
call mod.addModification(MOD_DMG_FROM_STORM, 0.25, 0)
call ashbringer_thunderfury_buff.setBuffModifier(mod)
endfunction
[values] => Array
(
[explain] =>
[visible] => false
[goldcost] => 0
[name] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BNab
[oeValues] => Array
(
[EditorName] => Thunderfury
[Buffubertip] => Taking increased damage from Nature and Storm towers.
[TargetArt] => Abilities\Spells\Other\Tornado\Tornado_Target.mdl
[Bufftip] => Thunderfury
[Buffart] => ReplaceableTextures\CommandButtons\BTNSwordOfZeal.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
)