Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[Farea1] => 100
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNDevotion.blp
[turnRate] => 2
[dmgplus1] => 4053
[bldtm] => 1
[unitSound] => Uther
[goldcost] => 4500
[sides1] => 1
[Missilearc] => 0.1
[manaN] => 100
[launchZ] => 90
[acquire] => 900
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[launchY] => 20
[Name] => Highlord
[weapTp1] => missile
[file] => units\human\Uther\Uther.mdl
[MissileHoming] => 1
[Harea1] => 150
[Qarea1] => 200
[Missilespeed] => 1700
[Missileart] => Abilities\Weapons\GryphonRiderMissile\GryphonRiderMissile.mdl
[dice1] => 1
[RngBuff1] => 250
[modelScale] => 0.7
[rangeN1] => 900
[atkType1] => normal
[cool1] => 1.5
[Ubertip] => Highlord of the Silver Hand.
[scaleBull] => 0
[abilList] => Array
(
)
[moveHeight] => 32
[buildingShadow] => Array
(
)
[targs1] => Array
(
)
[weapsOn] => 1
)
[settings] => Array
(
[balanceTip] => Array
(
)
[abil_factor] => 0.5
[author] => Ashbringer
[alpha] => 255
[authorDisplay] => |cffFF6600Ashbringer|r
[version] => 1.0
[element] => astral
[rarity] => unique
)
[effects] => Array
(
[0] => Array
(
[x] => -16.7426
[y] => 48.6603
[z] => 0
[scale] => 0.2
[rot] => 4.71239
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[1] => Array
(
[x] => -0.212126
[y] => 1.22182
[z] => 0
[scale] => 0.6
[rot] => 4.71239
[file] => Doodads\Outland\Props\Altar\Altar.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[2] => Array
(
[x] => 0.0642098
[y] => -20.553
[z] => 0
[scale] => 0.07
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[3] => Array
(
[x] => 23.4497
[y] => -16.116
[z] => 0
[scale] => 0.3
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[4] => Array
(
[x] => 22.834
[y] => 17.6462
[z] => 0
[scale] => 0.3
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[5] => Array
(
[x] => -23.8934
[y] => -15.618
[z] => 0
[scale] => 0.3
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[6] => Array
(
[x] => -23.5577
[y] => 17.3094
[z] => 0
[scale] => 0.3
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[7] => Array
(
[x] => -0.0478656
[y] => 22.2425
[z] => 0
[scale] => 0.07
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[8] => Array
(
[x] => -40.2491
[y] => 0.589192
[z] => 0
[scale] => 0.07
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[9] => Array
(
[x] => 39.853
[y] => 0.510836
[z] => 0
[scale] => 0.07
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[10] => Array
(
[x] => -39.6289
[y] => -0.0971368
[z] => 25.6
[scale] => 1
[rot] => 3.76991
[file] => Abilities\Weapons\ProcMissile\ProcMissile.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[11] => Array
(
[x] => 36.0961
[y] => 0.035463
[z] => 25.6
[scale] => 1
[rot] => 0.10472
[file] => Abilities\Weapons\ProcMissile\ProcMissile.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[12] => Array
(
[x] => 47.635
[y] => -47.0539
[z] => 0
[scale] => 0.13
[rot] => 5.49779
[file] => Doodads\Cityscape\Props\City_Statue\City_Statue.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[13] => Array
(
[x] => -46.334
[y] => -48.56
[z] => 0
[scale] => 0.13
[rot] => 3.92699
[file] => Doodads\Cityscape\Props\City_Statue\City_Statue.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[14] => Array
(
[x] => 49.4834
[y] => 49.1703
[z] => 0
[scale] => 0.13
[rot] => 0.785398
[file] => Doodads\Cityscape\Props\City_Statue\City_Statue.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[15] => Array
(
[x] => -46.9682
[y] => 47.9679
[z] => 0
[scale] => 0.13
[rot] => 2.3562
[file] => Doodads\Cityscape\Props\City_Statue\City_Statue.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[16] => Array
(
[x] => 17.8927
[y] => 47.5549
[z] => 0
[scale] => 0.2
[rot] => 4.71239
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[17] => Array
(
[x] => 16.7816
[y] => -48.5108
[z] => 0
[scale] => 0.2
[rot] => 4.71239
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[18] => Array
(
[x] => -17.1173
[y] => -47.9744
[z] => 0
[scale] => 0.2
[rot] => 4.71239
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[19] => Array
(
[x] => -0.411171
[y] => -48.5074
[z] => 0
[scale] => 0.2
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[20] => Array
(
[x] => 0.184268
[y] => 47.6779
[z] => 0
[scale] => 0.2
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[21] => Array
(
[x] => -29.1402
[y] => -37.3257
[z] => 0
[scale] => 0.2
[rot] => 0.785398
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[22] => Array
(
[x] => 30.5924
[y] => 34.4784
[z] => 0
[scale] => 0.2
[rot] => 0.785398
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[23] => Array
(
[x] => 48.4804
[y] => 16.2274
[z] => 0
[scale] => 0.2
[rot] => 0.785398
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[24] => Array
(
[x] => -46.9134
[y] => -19.6969
[z] => 0
[scale] => 0.2
[rot] => 0.785398
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[25] => Array
(
[x] => 28.7804
[y] => -36.8723
[z] => 0
[scale] => 0.2
[rot] => 2.3562
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[26] => Array
(
[x] => 46.926
[y] => -19.3323
[z] => 0
[scale] => 0.2
[rot] => 2.3562
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[27] => Array
(
[x] => -28.6924
[y] => 37.0554
[z] => 0
[scale] => 0.2
[rot] => 2.3562
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[28] => Array
(
[x] => -46.5091
[y] => 19.2558
[z] => 0
[scale] => 0.2
[rot] => 2.3562
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[29] => Array
(
[x] => 55.1026
[y] => -2.01319
[z] => 0
[scale] => 0.2
[rot] => 0
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[30] => Array
(
[x] => -55.1754
[y] => -0.406295
[z] => 0
[scale] => 0.2
[rot] => 0
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 135
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[31] => Array
(
[x] => 16.488
[y] => -32.302
[z] => -12.8
[scale] => 0.3
[rot] => 2.02458
[file] => Doodads\Cityscape\Plants\CityBush\CityBush.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[32] => Array
(
[x] => -1.04548
[y] => -34.3098
[z] => -12.8
[scale] => 0.3
[rot] => 2.3016
[file] => Doodads\Cityscape\Plants\CityBush\CityBush.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[33] => Array
(
[x] => -20.9295
[y] => -28.9246
[z] => -12.8
[scale] => 0.3
[rot] => 4.65575
[file] => Doodads\Cityscape\Plants\CityBush\CityBush.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[34] => Array
(
[x] => 19.0085
[y] => 30.4313
[z] => -12.8
[scale] => 0.3
[rot] => 5.98419
[file] => Doodads\Cityscape\Plants\CityBush\CityBush.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[35] => Array
(
[x] => -1.93689
[y] => 36.259
[z] => -12.8
[scale] => 0.3
[rot] => 3.04776
[file] => Doodads\Cityscape\Plants\CityBush\CityBush.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[36] => Array
(
[x] => -21.914
[y] => 27.0688
[z] => -12.8
[scale] => 0.3
[rot] => 5.49663
[file] => Doodads\Cityscape\Plants\CityBush\CityBush.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[37] => Array
(
[x] => 3.0055
[y] => 1.73295
[z] => -70.4
[scale] => 1
[rot] => 0.319609
[file] => Abilities\Spells\Orc\Reincarnation\ReincarnationTarget.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => On Attack
[code] => call ashbringer_seeker_create(tower, Event.getTarget())
[values] => Array
(
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNHolyBolt.blp
[name] => Judgement
[short_explain] => Attacks can spawn a projectile nearby which seeks out the target.
[ONATTACK_chance] => 0.2
[ONATTACK_chanceLevelAdd] => 0.008
[long_explain] => Attacks have a |cffFFFF8020%|r chance to conjure a ball of light at a random location within |cffFFFF801000|r range of the target. The ball moves slowly towards the target until it collides with any enemy in its path, dealing |cffFFFF80100%|r attack damage.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.8%|r chance|n|cffFFFF80+2%|r damage
)
)
[1] => Array
(
[name] => Header
[code] => globals
BuffType ashbringer_crusade_on_buff
BuffType ashbringer_crusade_off_buff
ProjectileType ashbringer_seeker_missile
endglobals
function ashbringer_crusade_reapply takes Buff b returns nothing
local Tower tower = b.getCaster()
call ashbringer_crusade_off_buff.apply(tower, tower, 0)
endfunction
function ashbringer_seeker_create takes Tower tower, Creep target returns nothing
local real damage = tower.getCurrentAttackDamageWithBonus() * (1.0 + (tower.getLevel() * 0.02))
local Projectile p
local real random_angle = GetRandomReal(0, 360)
local real random_distance = GetRandomReal(500, 1000)
local real start_x
local real start_y
set start_x = target.getX() + random_distance * Cos(Deg2Rad(random_angle))
set start_y = target.getY() + random_distance * Sin(Deg2Rad(random_angle))
set p = Projectile.createBezierInterpolationFromPointToUnit(ashbringer_seeker_missile, tower, 0, 0, start_x, start_y, 60, target, 0, GetRandomReal(-0.4, 0.4), GetRandomReal(0.15, 0.19), true)
set p.userReal = damage
endfunction
function ashbringer_seeker_hit takes Projectile p, Unit target returns nothing
local Tower tower = p.getCaster()
call tower.doAttackDamage(target, p.userReal, tower.calcAttackMulticrit(0, 0, 0))
call Effect.createSimpleOnUnit("Abilities\\Weapons\\SearingArrow\\SearingArrowMissile.mdl", target, "chest").destroy()
endfunction
//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
set ashbringer_crusade_off_buff=BuffType.create(-1, 0, true)
call ashbringer_crusade_off_buff.setBuffIcon('@@0@@')
call ashbringer_crusade_off_buff.setEventOnPurge(ashbringer_crusade_reapply)
set ashbringer_crusade_on_buff=BuffType.create(-1, 0, true)
call ashbringer_crusade_on_buff.setBuffIcon('@@1@@')
call ashbringer_crusade_on_buff.setEventOnPurge(ashbringer_crusade_reapply)
set ashbringer_seeker_missile = ProjectileType.createInterpolate("Abilities\\Weapons\\ProcMissile\\ProcMissile.mdl", 300)
call ashbringer_seeker_missile.enableCollision(ProjectileTargetEvent.ashbringer_seeker_hit, 65, TARGET_TYPE_CREEPS, true)
endfunction
[values] => Array
(
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
[name] => Atonement
[short_explain] => Upon reaching zero mana, the tower will do less damage but generate mana from attacks.
[long_explain] => Upon reaching zero mana, the tower gains Atonement which causes hits to deal |cffFFFF8025%|r less damage but restore |cffFFFF8010%|r of maximum mana. Lasts until the tower reaches maximum mana.|n|n|cffFF8000Level Bonus:|r|n|n|cffFFFF80-0.4%|r damage
)
)
[2] => Array
(
[name] => On Damage
[code] => local real mana_perc = GetUnitState(tower.getUnit(), UNIT_STATE_MANA) / GetUnitState(tower.getUnit(), UNIT_STATE_MAX_MANA)
local Creep target = Event.getTarget()
local Buff crusade_on = tower.getBuffOfType(ashbringer_crusade_on_buff)
local Buff crusade_off
local real mana_mod = 0.05
local real damage
local Iterate i
local Creep next
if crusade_on!=0 then
set damage = tower.getCurrentAttackDamageWithBonus() * (0.25 + (tower.getLevel() * 0.004))
set i = Iterate.overUnitsInRangeOfUnit(tower, TARGET_TYPE_CREEPS, target, 250)
loop
set next = i.next()
exitwhen next==0
call tower.doAttackDamage(next, damage, Event.getCriticalMultiplier())
if next!=target then
call Effect.createSimpleOnUnit("Abilities\\Spells\\Items\\StaffOfPurification\\PurificationTarget.mdl", next, "chest").destroy()
endif
endloop
call tower.subtractManaPerc(mana_mod, true)
if (mana_perc-mana_mod)<=0 then
call crusade_on.removeBuff()
call ashbringer_crusade_off_buff.apply(tower, tower, 0)
endif
else
set crusade_off = tower.getBuffOfType(ashbringer_crusade_off_buff)
set Event.damage = Event.damage * (1 - (0.25 + (tower.getLevel() * 0.004)))
call tower.addManaPerc(mana_mod*2)
if (mana_perc+(mana_mod*2))>=1 then
call crusade_off.removeBuff()
call ashbringer_crusade_on_buff.apply(tower, tower, 0)
endif
endif
[values] => Array
(
[ONDAMAGE_chance] => 1.0
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNDivineIntervention.blp
[name] => Crusade
[short_explain] => Upon reaching maximum mana, attacks do additional AoE damage at the cost of mana.
[ONDAMAGE_chanceLevelAdd] => 0.0
[long_explain] => Upon reaching maximum mana, the tower gains Crusade which causes hits to deal an additional |cffFFFF8025%|r damage to enemies within |cffFFFF80250|r range of the target but drain |cffFFFF805%|r of the tower's maximum mana. Lasts until tower reaches zero mana. If this effect is purged, the tower will gain Atonement.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r damage
)
)
[3] => Array
(
[name] => Periodic
[code] => local integer tick = tower.userInt
local integer level = tower.getLevel()
local integer frequency = 12
local real damage
local real stun_duration
local Iterate i
local Creep next
local integer temp
local Effect e
set tick = tick + 1
if level>=25 then
set frequency = 8
elseif level>=15 then
set frequency = 10
endif
set temp = (tick - ((tick / frequency) * frequency))
if (tick - ((tick / frequency) * frequency))==0 then
set i = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TYPE_CREEPS, 900)
set next = i.nextRandom()
if next!=0 then
set tower.userInt2 = 1
set tower.userReal = next.getX()
set tower.userReal2 = next.getY()
set e = Effect.createAnimated("Abilities\\Spells\\Human\\Resurrect\\ResurrectCaster.mdl", tower.userReal, tower.userReal2, 0, 270)
call e.setAnimationByIndex(0)
call e.setLifetime(4)
call i.destroy()
endif
set tick = 0
elseif tick==1 and tower.userInt2==1 then
set damage = tower.getCurrentAttackDamageWithBonus() * (2.5 + (level * 0.1))
set stun_duration = 0.5 + (level * 0.04)
set i = Iterate.overUnitsInRange(tower, TARGET_TYPE_CREEPS, tower.userReal, tower.userReal2, 200)
set next = i.next()
loop
exitwhen next==0
call tower.doAttackDamage(next, damage, tower.calcAttackMulticrit(0, 0, 0))
call cb_stun.applyOnlyTimed(tower, next, stun_duration)
call Effect.createSimpleAtUnit("Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl", next).destroy()
set next = i.next()
endloop
set tower.userInt2 = 0
endif
set tower.userInt = tick
[values] => Array
(
[visible] => true
[PERIODIC_period] => 1.0
[icon] => ReplaceableTextures\CommandButtons\BTNResurrection.blp
[name] => Holy Avenger
[short_explain] => Periodically summons an angel to damage and stun nearby enemies.
[long_explain] => Every |cffFFFF8012|r seconds, a Holy Avenger is called upon on a random nearby enemy within attack range. After |cffFFFF801|r second the Holy Avenger deals |cffFFFF80250%|r attack damage to enemies in |cffFFFF80200|r range of the target and stuns them for |cffFFFF800.5|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+10%|r damage|n|cffFFFF80+0.04|r seconds stun|n|cffFFFF80-2|r seconds cooldown at level |cffFFFF8015|r and |cffFFFF8025|r
)
)
[4] => Array
(
[name] => On Tower Creation
[code] => call ashbringer_crusade_off_buff.apply(tower, tower, 0)
set tower.userInt = 0
set tower.userInt2 = 0
set tower.userInt3 = 0
set tower.userReal = 0
set tower.userReal2 = 0
call Effect.createSimpleOnUnit("Abilities\\Weapons\\ProcMissile\\ProcMissile.mdl", tower, "weapon")
call SetUnitColor(tower.getUnit(), ConvertPlayerColor(0))
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BHtc
[oeValues] => Array
(
[Targetattach] => origin
[Buffubertip] => Reduced damage.
[TargetArt] => Abilities\Spells\Human\slow\slowtarget.mdl
[Bufftip] => Atonement
[Buffart] => ReplaceableTextures\CommandButtons\BTNDivineShieldOff.blp
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => BHtc
[oeValues] => Array
(
[Targetattach] => origin
[Buffubertip] => Increased damage.
[TargetArt] => Abilities\Spells\Human\DivineShield\DivineShieldTarget.mdl
[Bufftip] => Crusade
[Buffart] => ReplaceableTextures\CommandButtons\BTNDivineIntervention.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
[lightning] => Array
(
)
)