Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[RngBuff1] => 250
[Upgrade] => Array
(
)
[targs1] => Array
(
)
[lumbercost] => 4
[goldcost] => 100
[weapsOn] => 1
[dice1] => 1
[Missilespeed] => 1500
[targCount1] => 2
[file] => units\other\DalaranReject\DalaranReject.mdl
[moveHeight] => 92.95
[atkType1] => hero
[modelScale] => 0.3
[weapTp1] => mbounce
[acquire] => 800
[rangeN1] => 800
[upgrades] => Array
(
)
[cool1] => 2
[Ubertip] => A piece of a black heart. Poisons many enemies.
[green] => 50
[Farea1] => 800
[abilList] => Array
(
)
[atkType2] => hero
[Name] => Essence of Fury
[Missileart] => Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
[Art] => ReplaceableTextures\CommandButtons\BTNSludgeCreature.blp
[red] => 100
[buildingShadow] => Array
(
)
[turnRate] => 3
[blue] => 100
[sides1] => 1
[uberSplat] => ESMB
[auto] => Array
(
)
[dmgplus1] => 15
[bldtm] => 1
)
[settings] => Array
(
[author] => Killamasta
[element] => darkness
[authorDisplay] => Killamasta
[alpha] => 255
[balanceTip] => |cffCCFF00Bounce attack:|n |cffFFFF002|r targets|n |cffFFFF00-0%|r damage per bounce
[rarity] => uncommon
[version] => 1.0
[abil_factor] => 0.1
)
[effects] => Array
(
[0] => Array
(
[x] => -0.148493
[y] => -2.36487
[z] => 0
[scale] => 0.5
[rot] => 4.50295
[file] => Doodads\Ruins\Props\RuinsPillar\RuinsPillar0.mdl
[red] => 100
[green] => 50
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[1] => Array
(
[x] => -28.561
[y] => 26.0442
[z] => 0
[scale] => 1
[rot] => 5.8294
[file] => Doodads\Felwood\Plants\Felwood_Thorns\Felwood_Thorns6.mdl
[red] => 100
[green] => 50
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[2] => Array
(
[x] => 21.7934
[y] => -31.0457
[z] => 0
[scale] => 1
[rot] => 1.53589
[file] => Doodads\Felwood\Plants\Felwood_Thorns\Felwood_Thorns6.mdl
[red] => 100
[green] => 50
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[3] => Array
(
[x] => 22.7126
[y] => 31.4993
[z] => 0
[scale] => 1
[rot] => 5.51524
[file] => Doodads\Felwood\Plants\Felwood_Thorns\Felwood_Thorns6.mdl
[red] => 100
[green] => 50
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[4] => Array
(
[x] => -19.7395
[y] => -9.46386
[z] => 0
[scale] => 1
[rot] => 3.9968
[file] => Doodads\Felwood\Plants\Felwood_Thorns\Felwood_Thorns6.mdl
[red] => 100
[green] => 50
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
[5] => Array
(
[x] => -2.48158
[y] => 26.8969
[z] => 0
[scale] => 0.5
[rot] => 5.81195
[file] => Doodads\Felwood\Plants\Felwood_Thorns\Felwood_Thorns3.mdl
[red] => 100
[green] => 50
[blue] => 100
[alpha] => 255
[pitch] => 0
[advanced] => false
[animation] => Array
(
)
[aniSpeed] => 50
)
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => On Damage
[code] => local Unit creep = Event.getTarget()
set Poisoned_heart.applyCustomTimed(tower,creep,tower.getLevel(),6+tower.getLevel()*.1).userReal = 25. + 1 * tower.getLevel()
[values] => Array
(
[ONDAMAGE_chance] => 1.0
[icon] =>
[visible] => false
[name] =>
[short_explain] =>
[ONDAMAGE_chanceLevelAdd] => 0.0
[long_explain] =>
)
)
[1] => Array
(
[name] => Header
[code] => globals
//@export
BuffType Poisoned_heart // this is used to declare the buff
endglobals
function dealDamage takes Buff b returns nothing // we need this function to deal damage to the buffed creep
local Unit creep = b.getBuffedUnit() // this method is used to get the buffed creep
local Tower tower = b.getCaster() // this method is used to get the caster of the buff
call tower.doSpellDamage(creep,b.userReal,tower.calcSpellCritNoBonus()) // replace yy with your own value
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 Poisoned_heart=BuffType.create(9,0.5,false) //replace zz with your own value
call Poisoned_heart.setBuffIcon('@@0@@') // this is the id of the buff you have to create in the object editor
call Poisoned_heart.addPeriodicEvent(EventHandler.dealDamage,1) // with this we add a periodic event to the buff
endfunction
[values] => Array
(
[icon] => ReplaceableTextures\CommandButtons\BTNCorrosiveBreath.blp
[visible] => true
[name] => Poisoned Heart
[short_explain] => Deals damage over time.
[long_explain] => This tower destroys a piece of the creep's heart on damage. The affected creep takes |cffFFFF8025|r spelldamage every second for |cffFFFF806|r seconds.|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80+1|r poison damage|n|cffFFFF80+0.1|r seconds poison duration|n
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => Bpsd
[oeValues] => Array
(
[Bufftip] => Poisoned heart
[Buffubertip] => This unit takes damage over time!
[EditorSuffix] => Array
(
)
[Buffart] => ReplaceableTextures\CommandButtons\BTNEnvenomedSpear.blp
[EditorName] => Poisoned_heart
)
)
)
[units] => Array
(
)
[references] => Array
(
[0] => Array
(
[export] => true
[category] => global
[typ] => BuffType
[name] => Poisoned_heart
)
)
)