Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNStaffOfNegation.blp
[turnRate] => 3
[dmgplus1] => 5725
[bldtm] => 1
[goldcost] => 3750
[unitSound] => Jaina
[sides1] => 1
[Missilearc] => 0.1
[manaN] => 1500
[launchZ] => 70
[acquire] => 900
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[Name] => Grand Arcanist
[weapTp1] => missile
[MissileHoming] => 1
[file] => units\human\Jaina\Jaina.mdl
[uberSplat] => YTDG
[Missilespeed] => 1300
[Missileart] => war3mapImported\ArcaneMissileComplete.mdl
[dice1] => 1
[RngBuff1] => 250
[regenMana] => 50
[modelScale] => 0.6
[rangeN1] => 900
[atkType1] => normal
[cool1] => 2
[Ubertip] => She is unmatched at weaving arcane magic into martial prowess.
[scaleBull] => 0
[abilList] => Array
(
)
[moveHeight] => 35
[customTeamColor] => 1
[buildingShadow] => Array
(
)
[targs1] => Array
(
)
[weapsOn] => 1
[teamColor] => 7
)
[settings] => Array
(
[balanceTip] => Array
(
)
[abil_factor] => 0.6
[author] => Ashbringer
[alpha] => 255
[authorDisplay] => |cffff6600Ashbringer|r
[version] => 1.0
[element] => arcane
[rarity] => unique
)
[effects] => Array
(
[0] => Array
(
[x] => -27.2921
[y] => -40.274
[z] => 0
[scale] => 0.3
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[1] => Array
(
[x] => -39.2688
[y] => -28.6979
[z] => 0
[scale] => 0.3
[rot] => 0
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[2] => Array
(
[x] => -39.6801
[y] => 27.5199
[z] => 0
[scale] => 0.3
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[3] => Array
(
[x] => -28.104
[y] => 39.4965
[z] => 0
[scale] => 0.3
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[4] => Array
(
[x] => 39.4373
[y] => -27.6951
[z] => 0
[scale] => 0.3
[rot] => 0.000000357628
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[5] => Array
(
[x] => 27.8612
[y] => -39.6718
[z] => 0
[scale] => 0.3
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[6] => Array
(
[x] => 27.4612
[y] => 39.8001
[z] => 0
[scale] => 0.3
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[7] => Array
(
[x] => 39.4378
[y] => 28.224
[z] => 0
[scale] => 0.3
[rot] => 3.14159
[file] => Doodads\Cityscape\Structures\CityLowWall90\CityLowWall90.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[8] => Array
(
[x] => -0.107604
[y] => -42.88
[z] => 0
[scale] => 0.35
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[9] => Array
(
[x] => 21.3185
[y] => 20.2784
[z] => 44.8
[scale] => 0.15
[rot] => 4.69291
[file] => buildings\other\BookOfSummoning\BookOfSummoning.mdl
[red] => 255
[green] => 155
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[10] => Array
(
[x] => -21.5688
[y] => -22.7586
[z] => -12.8
[scale] => 0.36
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[11] => Array
(
[x] => 0.353761
[y] => 42.0713
[z] => 0
[scale] => 0.35
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[12] => Array
(
[x] => -22.019
[y] => 22.1883
[z] => -12.8
[scale] => 0.36
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[13] => Array
(
[x] => -42.7502
[y] => -0.385703
[z] => 0
[scale] => 0.35
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[14] => Array
(
[x] => 42.0639
[y] => -0.024146
[z] => 0
[scale] => 0.35
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[15] => Array
(
[x] => 19.3949
[y] => 0.0746911
[z] => 0
[scale] => 0.4
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[16] => Array
(
[x] => 0.609057
[y] => 20.3317
[z] => 0
[scale] => 0.4
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[17] => Array
(
[x] => 21.9696
[y] => 22.0171
[z] => -12.8
[scale] => 0.36
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[18] => Array
(
[x] => 0.625089
[y] => -20.8801
[z] => 0
[scale] => 0.4
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[19] => Array
(
[x] => -20.3492
[y] => -0.62893
[z] => 0
[scale] => 0.4
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[20] => Array
(
[x] => 0.0094084
[y] => 0.161566
[z] => 0
[scale] => 0.4
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[21] => Array
(
[x] => -38.4416
[y] => -39.7392
[z] => 19.2
[scale] => 0.15
[rot] => 0
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[22] => Array
(
[x] => 39.049
[y] => -39.2797
[z] => 19.2
[scale] => 0.15
[rot] => 0
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[23] => Array
(
[x] => 38.902
[y] => 39.4857
[z] => 19.2
[scale] => 0.15
[rot] => 0
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[24] => Array
(
[x] => -39.1437
[y] => 38.9987
[z] => 19.2
[scale] => 0.15
[rot] => 0
[file] => Doodads\Cityscape\Props\City_Oblisk\City_Oblisk.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[25] => Array
(
[x] => -0.483044
[y] => -12.6498
[z] => -6.4
[scale] => 0.1
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 255
[green] => 55
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[26] => Array
(
[x] => 0.384989
[y] => 14.5702
[z] => -6.4
[scale] => 0.1
[rot] => 4.71239
[file] => Doodads\Cityscape\Structures\City_ColumnSemiCircle\City_ColumnSemiCircle.mdl
[red] => 255
[green] => 55
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[27] => Array
(
[x] => -21.1169
[y] => -40.7957
[z] => 19.2
[scale] => 0.15
[rot] => 1.5708
[file] => Doodads\Cityscape\Plants\FlowerBedStraight\FlowerBedStraight.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[28] => Array
(
[x] => 21.8908
[y] => -39.6429
[z] => 19.2
[scale] => 0.15
[rot] => 1.5708
[file] => Doodads\Cityscape\Plants\FlowerBedStraight\FlowerBedStraight.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[29] => Array
(
[x] => 21.6115
[y] => 39.0407
[z] => 19.2
[scale] => 0.15
[rot] => 1.5708
[file] => Doodads\Cityscape\Plants\FlowerBedStraight\FlowerBedStraight.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[30] => Array
(
[x] => -20.2235
[y] => 39.2747
[z] => 19.2
[scale] => 0.15
[rot] => 1.5708
[file] => Doodads\Cityscape\Plants\FlowerBedStraight\FlowerBedStraight.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[31] => Array
(
[x] => -39.9908
[y] => 21.1561
[z] => 19.2
[scale] => 0.15
[rot] => 0.000000119209
[file] => Doodads\Cityscape\Plants\FlowerBedStraight\FlowerBedStraight.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[32] => Array
(
[x] => -39.7468
[y] => -22.5207
[z] => 19.2
[scale] => 0.15
[rot] => 0.000000119209
[file] => Doodads\Cityscape\Plants\FlowerBedStraight\FlowerBedStraight.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[33] => Array
(
[x] => 38.7282
[y] => -21.4254
[z] => 19.2
[scale] => 0.15
[rot] => 0.000000119209
[file] => Doodads\Cityscape\Plants\FlowerBedStraight\FlowerBedStraight.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[34] => Array
(
[x] => 39.0935
[y] => 21.5577
[z] => 19.2
[scale] => 0.15
[rot] => 0.000000119209
[file] => Doodads\Cityscape\Plants\FlowerBedStraight\FlowerBedStraight.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[35] => Array
(
[x] => -22.681
[y] => -22.6636
[z] => 38.4
[scale] => 0.2
[rot] => 2.11185
[file] => Objects\InventoryItems\runicobject\runicobject.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[36] => Array
(
[x] => 22.2296
[y] => -21.5196
[z] => 44.8
[scale] => 0.15
[rot] => 3.59538
[file] => Objects\InventoryItems\CrystalShard\CrystalShard.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[37] => Array
(
[x] => -23.0448
[y] => 22.352
[z] => 38.4
[scale] => 0.14
[rot] => 5.36864
[file] => Doodads\Cityscape\Props\CrystalLamp\CrystalLamp.mdl
[red] => 255
[green] => 75
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[38] => Array
(
[x] => -0.0905662
[y] => 0.0970049
[z] => 38.4
[scale] => 0.4
[rot] => 2.65874
[file] => buildings\other\CircleOfPower\CircleOfPower.mdl
[red] => 25
[green] => 155
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[39] => Array
(
[x] => -0.0414517
[y] => 0.364654
[z] => 44.8
[scale] => 0.8
[rot] => 1.90241
[file] => Abilities\Spells\Undead\Possession\PossessionCaster.mdl
[red] => 255
[green] => 45
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[40] => Array
(
[x] => -0.486605
[y] => -42.2857
[z] => 25.6
[scale] => 0.25
[rot] => 1.71042
[file] => Doodads\Cinematic\GlowingRunes\GlowingRunes5.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[41] => Array
(
[x] => 41.2405
[y] => -0.143938
[z] => 25.6
[scale] => 0.25
[rot] => 1.71042
[file] => Doodads\Cinematic\GlowingRunes\GlowingRunes5.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[42] => Array
(
[x] => -0.388422
[y] => 42.2146
[z] => 25.6
[scale] => 0.25
[rot] => 1.71042
[file] => Doodads\Cinematic\GlowingRunes\GlowingRunes5.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[43] => Array
(
[x] => -42.7545
[y] => -0.426721
[z] => 25.6
[scale] => 0.25
[rot] => 1.71042
[file] => Doodads\Cinematic\GlowingRunes\GlowingRunes5.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[44] => Array
(
[x] => 22.4565
[y] => -22.2493
[z] => -12.8
[scale] => 0.36
[rot] => 0
[file] => Doodads\Cityscape\Structures\City_LowWall_TallEndCap\City_LowWall_TallEndCap.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 Buff b = tower.getBuffOfType(ashbringer_clearcasting_buff)
local integer power = 1
if b!=0 then
set power = b.getPower() + 1
endif
call ashbringer_clearcasting_buff.applyCustomPower(tower, tower, power, power)
call Effect.createSimpleOnUnit("Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl", tower, "chest").setLifetime(3.0)
[values] => Array
(
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNManaBurn.blp
[name] => Clearcasting
[short_explain] => Attacks have a chance to make your next Arcane Charge cost no mana.
[ONATTACK_chance] => 0.15
[ONATTACK_chanceLevelAdd] => 0.006
[long_explain] => Attacks have a |cffffff8015%|r chance to make your next Arcane Charge consume no mana.|n|n|cffFF8000Level Bonus:|r|n|cffffff80+0.6%|r chance
)
)
[1] => Array
(
[name] => Header
[code] => globals
BuffType ashbringer_arcanecharge_buff
BuffType ashbringer_markmagi_buff
BuffType ashbringer_clearcasting_buff
BuffType ashbringer_evocation_buff
MultiboardValues ashbringer_charge_count
endglobals
struct ArcaneCharges
Effect array swirlies[40]
integer count = 0
method add takes Tower t returns nothing
if .count < 40 then
set .swirlies[.count] = Effect.createScaled("Abilities\\Spells\\NightElf\\SpiritOfVengeance\\SpiritOfVengeanceOrbs" + I2S(GetRandomInt(1, 3)) + ".mdl", t.getX(), t.getY(), 75, GetRandomReal(0, 359), GetRandomReal(1.8, 2.4))
call .swirlies[.count].setTeamcolor(ConvertPlayerColor(3))
call .swirlies[.count].setPitch(GetRandomInt(0, 359))
set .count = .count + 1
endif
endmethod
method cleanup takes nothing returns nothing
local integer i = 0
loop
exitwhen i >= .count
call .swirlies[i].noDeathAnimation()
call .swirlies[i].destroy()
set i = i + 1
endloop
set .count = 0
endmethod
endstruct
function ashbringer_mark_damaged takes Buff b returns nothing
local Tower t = b.getCaster()
set b.userReal = b.userReal + (Event.damage * (0.05 + (t.getLevel() * 0.002)))
endfunction
function ashbringer_mark_expire takes Buff b returns nothing
local Tower t = b.getCaster()
local Creep c = b.getBuffedUnit()
call t.doSpellDamageAoEUnit(c, 300, b.userReal, t.calcSpellCritNoBonus(), 0.0)
call Effect.createSimpleAtUnit("war3mapImported\\ArcaneExplosion.mdx", c).setLifetime(2.0)
endfunction
function ashbringer_arcanecharge_reset takes Buff b returns nothing
local Tower t = b.getCaster()
set t.userInt = 0
endfunction
function ashbringer_evocation_periodic takes Buff b returns nothing
local Tower t = b.getBuffedUnit()
call t.addManaPerc(0.125)
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_arcanecharge_buff = BuffType.create(60.0, 0.0, true)
call ashbringer_arcanecharge_buff.setBuffIcon('@@0@@')
call ashbringer_arcanecharge_buff.addEventOnCleanup(ashbringer_arcanecharge_reset)
set ashbringer_markmagi_buff = BuffType.create(5.0, 0.1, false)
call ashbringer_markmagi_buff.setBuffIcon('@@1@@')
call ashbringer_markmagi_buff.addEventOnDamaged(ashbringer_mark_damaged, 1.0, 0.0)
call ashbringer_markmagi_buff.addEventOnCleanup(ashbringer_mark_expire)
set ashbringer_clearcasting_buff = BuffType.create(60.0, 0.0, true)
call ashbringer_clearcasting_buff.setBuffIcon('@@2@@')
set ashbringer_evocation_buff = BuffType.create(8.1, 0.0, true)
call ashbringer_evocation_buff.setBuffIcon('@@3@@')
call ashbringer_evocation_buff.addPeriodicEvent(ashbringer_evocation_periodic, 1)
set ashbringer_charge_count = MultiboardValues.create(1)
call ashbringer_charge_count.setKey(0, "Arcane Charges")
endfunction
[values] => Array
(
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNPurge.blp
[name] => Evocation
[short_explain] => Chance to regenerate mana over time upon losing Arcane Charges.
[long_explain] => When the Grand Arcanist has insufficient mana for Arcane Charge, there is a |cffffff802.5%|r chance per charge lost to gain Evocation. Evocation restores |cffffff8012.5%|r of maximum mana every second for |cffffff808|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffffff800.1%|r chance
)
)
[2] => Array
(
[name] => On Tower Details
[code] => call ashbringer_charge_count.setValue(0, I2S(tower.userInt))
return ashbringer_charge_count
[values] => Array
(
[0] => Array
(
[_value] => 0
[typ] => string
)
)
)
[3] => Array
(
[name] => On Tower Destruction
[code] => local ArcaneCharges ac = tower.userInt3
call ac.cleanup()
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[4] => Array
(
[name] => On Damage
[code] => local ArcaneCharges ac = tower.userInt3
local Creep target = Event.getTarget()
local Buff clearcasting = tower.getBuffOfType(ashbringer_clearcasting_buff)
local Buff b = tower.getBuffOfType(ashbringer_arcanecharge_buff)
local integer power = 0
local real damage
local real mana
local boolean addcharge = false
local integer level = tower.getLevel()
if b != 0 then
set power = b.getPower()
endif
if clearcasting!=0 then
set mana = 0
if clearcasting.getPower() > 1 then
call clearcasting.setPower(clearcasting.getPower()-1)
else
call clearcasting.removeBuff()
endif
else
set mana = power * (50 + (level * 0.5))
endif
if mana > 0 then
set mana = tower.subtractMana(mana, false)
if mana > 0 then
set addcharge = true
endif
else
set addcharge = true
endif
if addcharge then
if power > 0 then
set damage = tower.getCurrentAttackDamageWithBonus() * power * (0.05 + (level * 0.002))
call tower.doSpellDamage(target, damage, tower.calcSpellCritNoBonus())
call Effect.createSimpleAtUnit("Abilities\\Spells\\Undead\\OrbOfDeath\\OrbOfDeathMissile.mdl", target).setLifetime(0.05)
endif
set power = power + 1
call ashbringer_arcanecharge_buff.applyCustomPower(tower, tower, power, power)
set tower.userInt = power
call ac.add(tower)
else
call ac.cleanup()
if b != 0 then
call b.removeBuff()
endif
set tower.userInt = 0
if power > 0 then
if tower.calcChance(power * (0.025 + (level * 0.001))) then
call ashbringer_evocation_buff.apply(tower, tower, level)
call Effect.createSimpleOnUnit("Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl", tower, "chest").setLifetime(3.0)
endif
endif
endif
[values] => Array
(
[ONDAMAGE_chance] => 1.0
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNArcaneBlast.blp
[name] => Arcane Charge
[short_explain] => Attacks consume mana to deal additional spell damage. Mana cost and damage increases with each charge.
[ONDAMAGE_chanceLevelAdd] => 0.0
[long_explain] => Arcane Charges add an additional |cffffff805%|r of attack damage as spell damage per charge at the cost of |cffffff8050|r mana per charge. If the Grand Arcanist has sufficient mana, a charge is generated. Otherwise, all charges are lost.|n|n|cffFF8000Level Bonus:|r|n|cffffff80+0.2%|r damage per charge|n|cffffff80-0.5|r mana per charge
)
)
[5] => Array
(
[name] => Autocast
[code] => Array
(
)
[values] => Array
(
[AUTOCAST_cooldown] => 10
[AUTOCAST_autoRange] => 800
[AUTOCAST_manacost] => 50
[icon] => ReplaceableTextures\CommandButtons\BTNBlink.blp
[AUTOCAST_range] => 900
[AUTOCAST_targetType] => TARGET_TYPE_CREEPS
[AUTOCAST_numBuffsBeforeIdle] => 1
[caster_art] =>
[long_explain] => Places Mark of the Magi on an enemy which lasts for |cffffff805.0|r seconds. |cffffff805%|r of damage dealt to the enemy is stored and later dealt as spell damage to all nearby enemies within |cffffff80300|r range when the effect expires.|n|n|cffFF8000Level Bonus:|r|n|cffffff80+0.2%|r damage|n|cffffff80+0.1|r seconds duration
[target_art] =>
[AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_BUFF
[AUTOCAST_buffType] => ashbringer_markmagi_buff
[AUTOCAST_isExtended] => false
[name] => Mark of the Magi
[AUTOCAST_targetSelf] => false
[short_explain] => Damage dealt to the target explodes as spell damage when the effect ends.
)
)
[6] => Array
(
[name] => On Tower Creation
[code] => local ArcaneCharges ac = ArcaneCharges.create()
call SetUnitColor(tower.getUnit(), ConvertPlayerColor(7))
set tower.userInt = 0
set ac.count = 0
set tower.userInt3 = ac
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BHab
[oeValues] => Array
(
[Targetattach] => weapon
[Buffubertip] => Array
(
)
[Bufftip] => Arcane Charge
[Buffart] => ReplaceableTextures\CommandButtons\BTNArcaneBlast.blp
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => BHab
[oeValues] => Array
(
[Targetattach] => chest
[Buffubertip] => Detonates stored damage on expiration.
[TargetArt] => war3mapImported\Arcane Bomb.mdx
[Bufftip] => Mark of the Magi
[Buffart] => ReplaceableTextures\CommandButtons\BTNBlink.blp
)
)
[2] => Array
(
[id] => @@2@@
[derivedFrom] => BHab
[oeValues] => Array
(
[Targetattach] => Array
(
)
[Buffubertip] => Array
(
)
[TargetArt] => Array
(
)
[Bufftip] => Clearcasting
[Buffart] => ReplaceableTextures\CommandButtons\BTNManaBurn.blp
)
)
[3] => Array
(
[id] => @@3@@
[derivedFrom] => BHab
[oeValues] => Array
(
[Targetattach] => chest
[Buffubertip] => Regerating mana.
[TargetArt] => Abilities\Spells\Other\ANrl\ANrlTarget.mdl
[Bufftip] => Evocation
[Buffart] => ReplaceableTextures\CommandButtons\BTNPurge.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
[lightning] => Array
(
)
)