Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[auto] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNSpiritWolf.blp
[turnRate] => 2
[bldtm] => 1
[dmgplus1] => 63
[goldcost] => 70
[unitSound] => Wolf
[sides1] => 9
[manaN] => 30
[acquire] => 900
[upgrades] => Array
(
)
[Upgrade] => Array
(
)
[Name] => Magic Dog
[weapTp1] => missile
[MissileHoming] => 1
[file] => units\orc\Spiritwolf\Spiritwolf.mdl
[uberSplat] => YTDM
[Missileart] => Abilities\Weapons\PriestMissile\PriestMissile.mdl
[Missilespeed] => 1700
[dice1] => 1
[RngBuff1] => 250
[regenMana] => 1
[modelScale] => 0.6
[rangeN1] => 900
[atkType1] => magic
[cool1] => 1.2
[Ubertip] => A magi's best friend.
[scaleBull] => 0
[abilList] => Array
(
)
[buildingShadow] => Array
(
)
[targs1] => Array
(
)
[weapsOn] => 1
[teamColor] => 7
)
[settings] => Array
(
[balanceTip] => Array
(
)
[abil_factor] => 0.8
[author] => Ashbringer
[alpha] => 255
[authorDisplay] => |cffff6600Ashbringer|r
[element] => arcane
[rarity] => uncommon
)
[effects] => Array
(
[0] => Array
(
[x] => -0.0919599
[y] => 0.500328
[z] => 38.4
[scale] => 1.8
[rot] => 4.71239
[file] => Abilities\Weapons\FaerieDragonMissile\FaerieDragonMissile.mdl
[red] => 55
[green] => 1
[blue] => 255
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
[pcolor] => 255
)
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => globals
BuffType ashbringer_magicdog
endglobals
//@export
function ashbringer_magicdog_roar takes Tower tower, integer stacks returns nothing
local Iterate i = Iterate.overUnitsInRangeOfCaster(tower, TARGET_TYPE_TOWERS, 420)
local Unit next
local Buff b
loop
set next = i.next()
exitwhen next == 0
set b = next.getBuffOfType(ashbringer_magicdog)
if b != 0 then
if b.userInt < 100 then
call ashbringer_magicdog.apply( tower, next, b.getLevel() + stacks )
set b.userInt = b.userInt + 1
else
call b.refreshDuration()
endif
else
set b = ashbringer_magicdog.apply( tower, next, tower.getLevel() * stacks )
set b.userInt = 0
endif
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 mod = Modifier.create()
set ashbringer_magicdog = BuffType.create(5.0, 0.0, true)
call ashbringer_magicdog.setBuffIcon('@@0@@' )
call mod.addModification(MOD_SPELL_DAMAGE_DEALT, 0.1, 0.001)
call ashbringer_magicdog.setBuffModifier(mod)
endfunction
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
[1] => Array
(
[name] => On Damage
[code] => local Creep target = Event.getTarget()
call tower.doSpellDamage(target, 2 + (tower.getLevel() * 2), tower.calcSpellCritNoBonus())
call Effect.createSimpleOnUnit("Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl", target, "chest").destroy()
call tower.addMana(5)
call Effect.createSimpleAtUnit("Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl", tower).setLifetime(1)
[values] => Array
(
[ONDAMAGE_chance] => 0.25
[visible] => true
[icon] => ReplaceableTextures\CommandButtons\BTNReplenishMana.blp
[name] => Mana Claw
[short_explain] => Chance on attack to deal spell damage and regenerate mana.
[ONDAMAGE_chanceLevelAdd] => 0.004
[long_explain] => Attacks have a |cffFFFF8025%|r chance to deal |cffFFFF8010|r spell damage and regenerate |cffFFFF805|r mana.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.4%|r chance|n|cffFFFF80+2|r spell damage
)
)
[2] => Array
(
[name] => Autocast
[code] => call ashbringer_magicdog_roar(tower, 6)
[values] => Array
(
[AUTOCAST_cooldown] => 3
[AUTOCAST_autoRange] => 900
[AUTOCAST_manacost] => 25
[icon] => ReplaceableTextures\CommandButtons\BTNDevourMagic.blp
[AUTOCAST_range] => 900
[AUTOCAST_targetType] => 0
[AUTOCAST_numBuffsBeforeIdle] => 0
[caster_art] => Abilities\Spells\Other\HowlOfTerror\HowlCaster.mdl
[long_explain] => Release a magical battle cry, increasing the spell damage of all towers in |cffFFFF80420|r range by |cffFFFF8010%|r for |cffFFFF805|r seconds. If a tower already has the Arcane Howl buff, the spell damage is increased by |cffFFFF800.6%|r and the duration is refreshed. Stacks up to |cffFFFF80100|r times.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+0.6%|r spell damage
[target_art] =>
[AUTOCAST_autocastType] => AC_TYPE_OFFENSIVE_IMMEDIATE
[AUTOCAST_buffType] => 0
[AUTOCAST_isExtended] => false
[name] => Arcane Howl
[AUTOCAST_targetSelf] => false
[short_explain] => Increases the spell damage of nearby towers.
)
)
[3] => Array
(
[name] => On Tower Creation
[code] => call SetUnitColor(tower.getUnit(), ConvertPlayerColor(7))
[values] => Array
(
[visible] => false
[icon] =>
[name] =>
[short_explain] =>
[long_explain] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BHfs
[oeValues] => Array
(
[EditorName] => Arcane Howl
[Buffubertip] => Increased spell damage.
[TargetArt] => Array
(
)
[Bufftip] => Arcane Howl
[Buffart] => ReplaceableTextures\CommandButtons\BTNDevourMagic.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
[lightning] => Array
(
)
)