Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNUndeadBattleShip.blp
[turnRate] => 10
[dmgplus1] => 1548
[bldtm] => 1
[goldcost] => 3000
[sides1] => 1
[maxPitch] => -90
[launchZ] => -40
[acquire] => 1000
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[launchY] => 10
[Name] => The Warbreaker
[red] => 75
[weapTp1] => missile
[MissileHoming] => 1
[file] => Doodads\Icecrown\Props\IceCrownPillar\IceCrownPillar0.mdl
[Missilespeed] => 3000
[dice1] => 1
[RngBuff1] => 250
[green] => 75
[modelScale] => 0.26
[rangeN1] => 1000
[propWin] => 1
[atkType1] => siege
[cool1] => 1
[Ubertip] => War made tangible, destruction made precise.
[blue] => 75
[abilList] => Array
(
)
[moveHeight] => 45
[buildingShadow] => Array
(
)
[targs1] => Array
(
)
[weapsOn] => 1
)
[settings] => Array
(
[balanceTip] => Array
(
)
[abil_factor] => 0.5
[author] => Moppy
[alpha] => 255
[authorDisplay] => |c006969FFMoppy|r
[version] => 1.0
[element] => iron
[rarity] => unique
)
[effects] => Array
(
[0] => Array
(
[x] => 0.10745
[y] => -3.72137
[z] => 32
[scale] => 0.2
[rot] => 4.71239
[file] => Doodads\Icecrown\Props\IceCrownPillar\IceCrownPillar0.mdl
[red] => 75
[green] => 75
[blue] => 75
[alpha] => 255
[pitch] => -2.5
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[1] => Array
(
[x] => -10.5066
[y] => 17.7549
[z] => 32
[scale] => 0.2
[rot] => 2.61799
[file] => Doodads\Icecrown\Props\IceCrownPillar\IceCrownPillar0.mdl
[red] => 75
[green] => 75
[blue] => 75
[alpha] => 255
[pitch] => -2.5
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[2] => Array
(
[x] => 9.99596
[y] => 17.5093
[z] => 32
[scale] => 0.2
[rot] => 0.523599
[file] => Doodads\Icecrown\Props\IceCrownPillar\IceCrownPillar0.mdl
[red] => 75
[green] => 75
[blue] => 75
[alpha] => 255
[pitch] => -2.5
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[3] => Array
(
[x] => 0.0500417
[y] => -23.5137
[z] => -51.2
[scale] => 0.44
[rot] => 4.71239
[file] => Doodads\Cityscape\Props\CrystalLamp\CrystalLamp.mdl
[red] => 50
[green] => 50
[blue] => 50
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[4] => Array
(
[x] => -0.95166
[y] => -12.5376
[z] => 19.2
[scale] => 0.36
[rot] => 2.19912
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[5] => Array
(
[x] => -0.422188
[y] => 25.3383
[z] => 19.2
[scale] => 0.36
[rot] => 2.19912
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[6] => Array
(
[x] => 16.3371
[y] => 17.1561
[z] => 19.2
[scale] => 0.36
[rot] => 1.15192
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[7] => Array
(
[x] => -16.7981
[y] => 14.2298
[z] => 19.2
[scale] => 0.36
[rot] => 3.24631
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[8] => Array
(
[x] => -16.4528
[y] => -5.7713
[z] => 19.2
[scale] => 0.36
[rot] => 4.29351
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[9] => Array
(
[x] => 17.9684
[y] => -4.06671
[z] => 19.2
[scale] => 0.36
[rot] => 0.10472
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[10] => Array
(
[x] => -1.44123
[y] => -7.85773
[z] => 19.2
[scale] => 0.4
[rot] => 2.19912
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[11] => Array
(
[x] => -0.911761
[y] => 14.0182
[z] => 19.2
[scale] => 0.4
[rot] => 2.19912
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[12] => Array
(
[x] => 7.84754
[y] => 5.836
[z] => 19.2
[scale] => 0.4
[rot] => 1.15192
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[13] => Array
(
[x] => -9.28768
[y] => 2.90967
[z] => 19.2
[scale] => 0.4
[rot] => 3.24631
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[14] => Array
(
[x] => -8.94232
[y] => -1.0914
[z] => 19.2
[scale] => 0.4
[rot] => 4.29351
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[15] => Array
(
[x] => 9.47882
[y] => 0.61319
[z] => 19.2
[scale] => 0.4
[rot] => 0.10472
[file] => Doodads\Cityscape\Props\CityGrave\CityGrave1.mdl
[red] => 65
[green] => 65
[blue] => 65
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[16] => Array
(
[x] => -29.6897
[y] => 29.04
[z] => -51.2
[scale] => 0.44
[rot] => 4.71239
[file] => Doodads\Cityscape\Props\CrystalLamp\CrystalLamp.mdl
[red] => 50
[green] => 50
[blue] => 50
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[17] => Array
(
[x] => 28.4556
[y] => 28.8813
[z] => -51.2
[scale] => 0.44
[rot] => 4.71239
[file] => Doodads\Cityscape\Props\CrystalLamp\CrystalLamp.mdl
[red] => 50
[green] => 50
[blue] => 50
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[18] => Array
(
[x] => -40.7882
[y] => -34.5712
[z] => -76.8
[scale] => 0.7
[rot] => 1.5708
[file] => Doodads\Cityscape\Props\CrystalLamp\CrystalLamp.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[19] => Array
(
[x] => -40.4669
[y] => -32.4757
[z] => -6.4
[scale] => 0.3
[rot] => 2.87979
[file] => Abilities\Spells\Orc\ReinforcedTrollBurrow\ReinforcedTrollBurrowTarget.mdl
[red] => 90
[green] => 90
[blue] => 90
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[20] => Array
(
[x] => 40.3717
[y] => -32.1477
[z] => -6.4
[scale] => 0.3
[rot] => 2.87979
[file] => Abilities\Spells\Orc\ReinforcedTrollBurrow\ReinforcedTrollBurrowTarget.mdl
[red] => 90
[green] => 90
[blue] => 90
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[21] => Array
(
[x] => 40.6063
[y] => -30.5362
[z] => -76.8
[scale] => 0.7
[rot] => 4.71239
[file] => Doodads\Cityscape\Props\CrystalLamp\CrystalLamp.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[22] => Array
(
[x] => -40.8731
[y] => -36.126
[z] => 12.8
[scale] => 0.12
[rot] => 4.71239
[file] => Doodads\Icecrown\Props\IceCrownPillar\IceCrownPillar0.mdl
[red] => 75
[green] => 75
[blue] => 75
[alpha] => 255
[pitch] => -1.57
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[23] => Array
(
[x] => 40.7201
[y] => -36.1167
[z] => 12.8
[scale] => 0.12
[rot] => 4.71239
[file] => Doodads\Icecrown\Props\IceCrownPillar\IceCrownPillar0.mdl
[red] => 75
[green] => 75
[blue] => 75
[alpha] => 255
[pitch] => -1.57
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[24] => Array
(
[x] => 4.2665
[y] => -0.729515
[z] => 0
[scale] => 0.12
[rot] => 3.14159
[file] => war3mapImported\Square_Column.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => -1.57
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[25] => Array
(
[x] => -3.27636
[y] => -0.664291
[z] => 0
[scale] => 0.12
[rot] => 0
[file] => war3mapImported\Square_Column.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => -1.57
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[26] => Array
(
[x] => -42.6514
[y] => -46.6898
[z] => 0
[scale] => 0.12
[rot] => 1.5708
[file] => war3mapImported\Square_Column.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => -1.57
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[27] => Array
(
[x] => 42.1549
[y] => -47.4268
[z] => 0
[scale] => 0.12
[rot] => 1.5708
[file] => war3mapImported\Square_Column.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => -1.57
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[28] => Array
(
[x] => -44.9912
[y] => 0.926397
[z] => -19.2
[scale] => 0.3
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[29] => Array
(
[x] => 44.0414
[y] => 1.068
[z] => -19.2
[scale] => 0.3
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[30] => Array
(
[x] => -44.9175
[y] => 48.9424
[z] => -19.2
[scale] => 0.3
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[31] => Array
(
[x] => -49.0976
[y] => 1.89564
[z] => 0
[scale] => 0.12
[rot] => 1.5708
[file] => war3mapImported\Square_Column.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => -1.57
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[32] => Array
(
[x] => 47.888
[y] => 2.02376
[z] => 0
[scale] => 0.12
[rot] => 1.5708
[file] => war3mapImported\Square_Column.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => -1.57
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[33] => Array
(
[x] => 44.0785
[y] => 49.069
[z] => -19.2
[scale] => 0.3
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[34] => Array
(
[x] => 4.9375
[y] => 48.6789
[z] => 0
[scale] => 0.12
[rot] => 3.14159
[file] => war3mapImported\Square_Column.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => -1.57
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[35] => Array
(
[x] => -2.6445
[y] => 48.7785
[z] => 0
[scale] => 0.12
[rot] => 0
[file] => war3mapImported\Square_Column.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => -1.57
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[36] => Array
(
[x] => 0.744019
[y] => 48.8578
[z] => -19.2
[scale] => 0.3
[rot] => 1.5708
[file] => Doodads\Cityscape\Structures\City_LowWall_ShortEndCap\City_LowWall_ShortEndCap.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[37] => Array
(
[x] => 0.262777
[y] => 19.5419
[z] => 32
[scale] => 0.11
[rot] => 4.71239
[file] => war3mapImported\City_ColumnSemiCircle2.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[38] => Array
(
[x] => -0.563685
[y] => -11.4215
[z] => 32
[scale] => 0.11
[rot] => 1.5708
[file] => war3mapImported\City_ColumnSemiCircle2.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[39] => Array
(
[x] => -0.162149
[y] => 4.16785
[z] => 38.4
[scale] => 0.348
[rot] => 3.66519
[file] => Abilities\Spells\Orc\ReinforcedTrollBurrow\ReinforcedTrollBurrowTarget.mdl
[red] => 40
[green] => 40
[blue] => 40
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[40] => Array
(
[x] => 0.0555331
[y] => 4.10684
[z] => 38.4
[scale] => 0.348
[rot] => 2.87979
[file] => Abilities\Spells\Orc\ReinforcedTrollBurrow\ReinforcedTrollBurrowTarget.mdl
[red] => 40
[green] => 40
[blue] => 40
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[41] => Array
(
[x] => -0.167337
[y] => 4.10635
[z] => 38.4
[scale] => 0.348
[rot] => 2.48709
[file] => Abilities\Spells\Orc\ReinforcedTrollBurrow\ReinforcedTrollBurrowTarget.mdl
[red] => 40
[green] => 40
[blue] => 40
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[42] => Array
(
[x] => 0.0688388
[y] => 4.04788
[z] => 38.4
[scale] => 0.348
[rot] => 3.27249
[file] => Abilities\Spells\Orc\ReinforcedTrollBurrow\ReinforcedTrollBurrowTarget.mdl
[red] => 40
[green] => 40
[blue] => 40
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[43] => Array
(
[x] => 0.200567
[y] => 16.5284
[z] => 51.2
[scale] => 0.09
[rot] => 4.71239
[file] => war3mapImported\City_ColumnSemiCircle2.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[44] => Array
(
[x] => -0.456698
[y] => -8.85809
[z] => 51.2
[scale] => 0.09
[rot] => 1.5708
[file] => war3mapImported\City_ColumnSemiCircle2.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[45] => Array
(
[x] => 0.336073
[y] => 4.61005
[z] => 12.8
[scale] => 0.4
[rot] => 4.71239
[file] => Doodads\Cityscape\Props\CrystalLamp\CrystalLamp.mdl
[red] => 255
[green] => 255
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
[46] => Array
(
[x] => 0.0440001
[y] => 3.31839
[z] => 44.8
[scale] => 0.25
[rot] => 4.71239
[file] => Doodads\Outland\Props\Grate\Grate1.mdl
[red] => 75
[green] => 75
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => On Attack
[code] => local Unit c = Event.getTarget()
local integer lvl = tower.getLevel()
local integer stacks = 1
local Buff b = tower.getBuffOfGroup("moppy_overdrive_buff_group")
local real angle
if b != 0 then
set stacks = IMinBJ(b.userInt + 1, 30)
endif
set moppy_overdrive_buff.applyCustomTimed(tower, tower, stacks * (50 + lvl), 5.0).userInt = stacks
set angle = AngleBetweenPoints(GetUnitLoc(tower.getUnit()), GetUnitLoc(c.getUnit()))
if tower.getBuffOfType(moppy_hullbreaker_rounds_buff) != 0 then
set Projectile.createFromPointToUnit(moppy_hullbeaker_rounds_shot, tower, 1, 0, tower.getX() + 6 * Cos(angle * bj_DEGTORAD), tower.getY() + 6 * Sin(angle * bj_DEGTORAD), 40, c, true, false, false).direction = angle
endif
if tower.getBuffOfType(moppy_shrapnel_burst_buff) != 0 then
set Projectile.createFromPointToUnit(moppy_shrapnel_burst_shot, tower, 1, 0, tower.getX() + 6 * Cos(angle * bj_DEGTORAD), tower.getY() + 6 * Sin(angle * bj_DEGTORAD), 40, c, true, false, false).direction = angle
endif
[values] => Array
(
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNEngineeringUpgrade.blp
[name] => Overdrive Protocol
[short_explain] => On attack, increases attack speed, attack damage and crit chance. Stacks.
[ONATTACK_chance] => 1.0
[ONATTACK_chanceLevelAdd] => 0.0
[long_explain] => On attack, gain a stack of Overdrive Protocol for |cffFFFF805|r seconds, increasing attack speed and attack damage by |cffFFFF805%|r, and crit chance by |cffFFFF800.75%|r per stack. Stacks up to |cffFFFF8030|r times.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.1%|r attack speed and attack damage|n|cffFFFF80+0.015%|r crit chance
)
)
[1] => Array
(
[name] => Header
[code] => globals
BuffType moppy_overdrive_buff
BuffType moppy_hullbreaker_rounds_buff
BuffType moppy_shrapnel_burst_buff
ProjectileType moppy_hullbeaker_rounds_shot
ProjectileType moppy_shrapnel_burst_shot
endglobals
function moppy_shrapnel_burst_projectile takes Projectile p, Unit c returns nothing
local Tower t = p.getCaster()
local Iterate i = Iterate.overUnitsInRangeOfUnit(t, TARGET_TYPE_CREEPS, c, 200)
local real dmg
local Buff b
set dmg = t.getCurrentAttackDamageWithBonus() * (0.2 + t.getLevel() * 0.008)
set b = t.getBuffOfGroup("moppy_overdrive_buff_group")
if b != 0 and b.userInt >= 15 then
set dmg = dmg + t.getCurrentAttackDamageWithBonus() * (0.10 + t.getLevel() * 0.004)
endif
loop
set c = i.next()
exitwhen c == 0
call t.doAttackDamage(c, dmg, t.calcAttackMulticrit(0.0, 0.0, 0))
endloop
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
local Modifier o = Modifier.create()
set moppy_overdrive_buff = BuffType.create(0.0, 0.0, true)
call o.addModification(MOD_ATTACKSPEED, 0.0, 0.001)
call o.addModification(MOD_DAMAGE_ADD_PERC, 0.0, 0.001)
call o.addModification(MOD_ATK_CRIT_CHANCE, 0.0, 0.00015)
call moppy_overdrive_buff.setBuffModifier(o)
call moppy_overdrive_buff.setBuffIcon('@@0@@')
call moppy_overdrive_buff.setStackingGroup("moppy_overdrive_buff_group")
set moppy_hullbreaker_rounds_buff = BuffType.create(-1.0, 0.0, true)
call moppy_hullbreaker_rounds_buff.setBuffIcon('@@1@@')
set moppy_shrapnel_burst_buff = BuffType.create(-1.0, 0.0, true)
call moppy_shrapnel_burst_buff.setBuffIcon('@@2@@')
set moppy_hullbeaker_rounds_shot = ProjectileType.create("Abilities\\Weapons\\RocketMissile\\RocketMissile.mdl", 4, 3000)
set moppy_shrapnel_burst_shot = ProjectileType.create("Abilities\\Weapons\\CannonTowerMissile\\CannonTowerMissile.mdl", 4, 1000)
call moppy_shrapnel_burst_shot.enableHoming(moppy_shrapnel_burst_projectile, 0.0)
endfunction
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[2] => Array
(
[name] => On Damage
[code] => local Creep c = Event.getTarget()
local real ignoreArmor = 0.10 + tower.getLevel() * 0.004
local real damageBase = Event.damage
local real sDmg = Event.damage
local real temp
local Buff b
if tower.getBuffOfType(moppy_hullbreaker_rounds_buff) != 0 then
set b = tower.getBuffOfGroup("moppy_overdrive_buff_group")
if b != 0 and b.userInt >= 15 then
set ignoreArmor = ignoreArmor + (0.05 + tower.getLevel() * 0.002)
endif
set temp = 1 - c.getCurrentArmorDamageReduction()
if temp > 0 then
set damageBase = damageBase / temp
endif
if sDmg < damageBase then
set Event.damage = damageBase * ignoreArmor + sDmg * (1 - ignoreArmor)
endif
endif
if tower.getBuffOfType(moppy_shrapnel_burst_buff) != 0 then
set Event.damage = 0
endif
[values] => Array
(
[ONDAMAGE_chance] => 1.0
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[ONDAMAGE_chanceLevelAdd] => 0.0
[long_explain] =>
)
)
[3] => Array
(
[name] => Autocast
[code] => if tower.getBuffOfType(moppy_hullbreaker_rounds_buff) == 0 then
call moppy_hullbreaker_rounds_buff.apply(tower, tower, tower.getLevel())
call tower.getOwner().displayFloatingText("Hullbreaker Rounds", tower, 175, 175, 255)
endif
if tower.getBuffOfType(moppy_shrapnel_burst_buff) != 0 then
call tower.getBuffOfType(moppy_shrapnel_burst_buff).removeBuff()
endif
[values] => Array
(
[AUTOCAST_cooldown] => 5
[AUTOCAST_autoRange] => 0
[AUTOCAST_manacost] => 0
[icon] => ReplaceableTextures\CommandButtons\BTNHumanArtilleryUpOne.blp
[AUTOCAST_range] => 0
[AUTOCAST_targetType] => TARGET_TYPE_TOWERS
[AUTOCAST_numBuffsBeforeIdle] => 1
[caster_art] =>
[long_explain] => Changes the firing mode to Hullbreaker Rounds. Attacks ignore |cffFFFF8010%|r of the target's armor on hit. At |cffFFFF8015|r Overdrive Protocol stacks or more, attacks ignore an additional |cffFFFF805%|r armor.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r armor ignored|n|cffFFFF80+0.2%|r armor ignored at |cffFFFF8015|r stacks or more
[target_art] =>
[AUTOCAST_autocastType] => AC_TYPE_NOAC_IMMEDIATE
[AUTOCAST_buffType] => moppy_hullbreaker_rounds_buff
[AUTOCAST_isExtended] => false
[name] => Hullbreaker Rounds
[AUTOCAST_targetSelf] => true
[short_explain] => Switch to armor-piercing shots; stronger at high Overdrive Protocol stacks.
)
)
[4] => Array
(
[name] => Autocast
[code] => if tower.getBuffOfType(moppy_shrapnel_burst_buff) == 0 then
call moppy_shrapnel_burst_buff.apply(tower, tower, tower.getLevel())
call tower.getOwner().displayFloatingText("Shrapnel Burst", tower, 175, 175, 255)
endif
if tower.getBuffOfType(moppy_hullbreaker_rounds_buff) != 0 then
call tower.getBuffOfType(moppy_hullbreaker_rounds_buff).removeBuff()
endif
[values] => Array
(
[AUTOCAST_cooldown] => 5
[AUTOCAST_autoRange] => 0
[AUTOCAST_manacost] => 0
[icon] => ReplaceableTextures\CommandButtons\BTNFlakCannons.blp
[AUTOCAST_range] => 0
[AUTOCAST_targetType] => TARGET_TYPE_TOWERS
[AUTOCAST_numBuffsBeforeIdle] => 1
[caster_art] =>
[long_explain] => Changes the firing mode to Shrapnel Burst. Attacks deal |cffFFFF8020%|r of the tower's attack damage to the main target and all enemies within |cffFFFF80200|r range of it. At |cffFFFF8015|r Overdrive Protocol stacks or more, attacks deal an additional |cffFFFF8010%|r of the tower's attack damage.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.8%|r damage|n|cffFFFF80+0.4%|r damage at |cffFFFF8015|r stacks or more
[target_art] =>
[AUTOCAST_autocastType] => AC_TYPE_NOAC_IMMEDIATE
[AUTOCAST_buffType] => moppy_shrapnel_burst_buff
[AUTOCAST_isExtended] => false
[name] => Shrapnel Burst
[AUTOCAST_targetSelf] => true
[short_explain] => Switch to area attacks; stronger at high Overdrive Protocol stacks.
)
)
[5] => Array
(
[name] => On Tower Creation
[code] => call moppy_hullbreaker_rounds_buff.apply(tower, tower, 1)
call tower.getOwner().displayFloatingText("Hullbreaker Rounds", tower, 175, 175, 255)
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BNab
[oeValues] => Array
(
[Targetattach] => Array
(
)
[EditorName] => Overdrive Protocol
[Buffubertip] => Attack speed; attack damage and crit chance increased.
[TargetArt] => Array
(
)
[Bufftip] => Overdrive Protocol
[Buffart] => ReplaceableTextures\CommandButtons\BTNEngineeringUpgrade.blp
)
)
[1] => Array
(
[id] => @@1@@
[derivedFrom] => BNab
[oeValues] => Array
(
[Targetattach] => Array
(
)
[EditorName] => Hullbreaker Rounds
[Buffubertip] => Attacks partially pierce armor.
[TargetArt] => Array
(
)
[Bufftip] => Hullbreaker Rounds
[Buffart] => ReplaceableTextures\CommandButtons\BTNHumanArtilleryUpOne.blp
)
)
[2] => Array
(
[id] => @@2@@
[derivedFrom] => BNab
[oeValues] => Array
(
[Targetattach] => Array
(
)
[EditorName] => Shrapnel Burst
[Buffubertip] => Attacks deal partial splash damage.
[TargetArt] => Array
(
)
[Bufftip] => Shrapnel Burst
[Buffart] => ReplaceableTextures\CommandButtons\BTNFlakCannons.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
[lightning] => Array
(
)
)