Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNDevotion.blp
[turnRate] => 2
[dmgplus1] => 5735
[bldtm] => 1
[unitSound] => Uther
[goldcost] => 4500
[sides1] => 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
[Missilespeed] => 1400
[Missileart] => Abilities\Weapons\GryphonRiderMissile\GryphonRiderMissile.mdl
[dice1] => 1
[RngBuff1] => 250
[modelScale] => 0.7
[rangeN1] => 900
[atkType1] => siege
[cool1] => 1.85
[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.55
[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] => local Projectile p
local real angle
local real tower_x = tower.getX()
local real tower_y = tower.getY()
local real facing = GetUnitFacing(tower.getUnit())
local real x = tower_x + (350 * Cos(Deg2Rad(facing)))
local real y = tower_y + (350 * Sin(Deg2Rad(facing)))
set p = Projectile.create(ashbringer_seeker_missile, tower, 0, 0, x, y, 40, ModuloReal(facing + 90, 360))
call p.setScale(1.2)
set p.userReal = tower_x
set p.userReal2 = tower_y
set p.userReal3 = tower.getCurrentAttackDamageWithBonus() * (0.75 + (tower.getLevel() * 0.03))
set p.userInt = 0
[values] => Array
(
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNSpell_Holy_RighteousFury.blp
[name] => Blessed Hammer
[short_explain] => Attacks have a chance to throw a hammer that spirals outward.
[ONATTACK_chance] => 0.05
[ONATTACK_chanceLevelAdd] => 0.002
[long_explain] => Attacks have a |cffFFFF805%|r chance to throw a hammer that spirals outward from the Highlord for |cffFFFF8012|r seconds, dealing |cffFFFF8075%|r of attack damage as |cff00FFFFEnergy|r damage to enemies it collides with. Enemies can only be hit once by each hammer.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.2%|r chance|n|cffFFFF80+3%|r attack damage
)
)
[1] => Array
(
[name] => Header
[code] => globals
BuffType ashbringer_crusade_on_buff
BuffType ashbringer_crusade_off_buff
ProjectileType ashbringer_seeker_missile
endglobals
public function ashbringer_seeker_update takes Projectile p returns nothing
local real radius = SquareRoot((p.userReal - p.x) * (p.userReal - p.x) + (p.userReal2 - p.y) * (p.userReal2 - p.y))
local real circumference = bj_PI * radius * 2
local real seconds = circumference / (p.speed)
local real turning = 360 / seconds / 25
local real angle = bj_RADTODEG * Atan2(p.y - p.userReal2, p.x - p.userReal) + 90
if radius>140 then
if angle < 0 then
set angle = angle + 360
elseif angle > 360 then
set angle = angle - 360
endif
set p.rotation = turning - 0.04
set p.direction = angle
endif
endfunction
function ashbringer_seeker_hit takes Projectile p, Unit target returns nothing
local Tower tower = p.getCaster()
call tower.doCustomAttackDamage(target, p.userReal3, tower.calcAttackMulticrit(0, 0, 0), AttackType.ENERGY)
call Effect.createSimpleOnUnit("war3mapImported\\GryphonRiderMissileHoly.mdx", 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@@')
set ashbringer_crusade_on_buff=BuffType.create(-1, 0, true)
call ashbringer_crusade_on_buff.setBuffIcon('@@1@@')
set ashbringer_seeker_missile = ProjectileType.create("war3mapImported\\GryphonRiderMissileHoly.mdx", 12, 1500)
call ashbringer_seeker_missile.enablePeriodic(ProjectileEvent.ashbringer_seeker_update, 0.2)
call ashbringer_seeker_missile.enableCollision(ProjectileTargetEvent.ashbringer_seeker_hit, 100, TARGET_TYPE_CREEPS, false)
call ashbringer_seeker_missile.setStartRotation(14.4)
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, Crusade becomes Atonement, which causes hits to deal |cffFFFF8025%|r less damage but restore |cffFFFF8010%|r of maximum mana. Lasts until the tower reaches maximum mana.
)
)
[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 = tower.getBuffOfType(ashbringer_crusade_off_buff)
local real mana_mod = 0.05
local real damage
local Iterate i
local Creep next
if crusade_on==0 and crusade_off==0 then
set crusade_off = ashbringer_crusade_off_buff.apply(tower, tower, 0)
endif
if crusade_on!=0 then
if Event.isMainTarget() then
set Event.damage = Event.damage + ((Event.damage * (0.25 + (tower.getLevel() * 0.01))) / AttackType.PHYSICAL.getDamageAgainst(target.getArmorType()) * AttackType.ENERGY.getDamageAgainst(target.getArmorType()))
set damage = tower.getCurrentAttackDamageWithBonus() * (0.25 + (tower.getLevel() * 0.01))
set i = Iterate.overUnitsInRangeOfUnit(tower, TARGET_TYPE_CREEPS, target, 250)
loop
set next = i.next()
exitwhen next==0
if next!=target then
call tower.doCustomAttackDamage(next, damage, Event.getCriticalMultiplier(), AttackType.ENERGY)
endif
call Effect.createSimpleOnUnit("Abilities\\Spells\\Items\\StaffOfPurification\\PurificationTarget.mdl", next, "chest").destroy()
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
endif
elseif crusade_off!=0 then
set Event.damage = Event.damage * (1 - 0.25)
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, Atonement becomes Crusade, which causes hits to deal an additional |cffFFFF8025%|r of attack damage as |cff00FFFFEnergy|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+1%|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.doCustomAttackDamage(next, damage, tower.calcAttackMulticrit(0, 0, 0), AttackType.ENERGY)
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\BTNAvenging_Crusader.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 of attack damage as |cff00FFFFEnergy|r 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 attack 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 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
[Targetattach1] => weapon
[Buffubertip] => Increased damage.
[TargetArt] => Abilities\Spells\Human\DivineShield\DivineShieldTarget.mdl,Abilities\Weapons\ProcMissile\ProcMissile.mdl
[Targetattachcount] => 2
[Bufftip] => Crusade
[Buffart] => ReplaceableTextures\CommandButtons\BTNDivineIntervention.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
[lightning] => Array
(
)
)