Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[Ubertip] => Array
(
)
[Art] => ReplaceableTextures\CommandButtons\BTNEntanglingRoots.blp
[abilList] => Array
(
)
[Name] => Grounding Gloves
)
[settings] => Array
(
[balanceTip] => Array
(
)
[goldcost] => 1500
[author] => SirCoqaLot.
[authorDisplay] => SirCoqaLot.
[version] => 1.0
[rarity] => unique
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => globals
BuffType BT
BuffType CD
Cast C
endglobals
function overgrowth_dmg takes DummyUnit C returns nothing
local Creep U = Event.getTarget()
local Tower tower = C.getCaster()
set Event.damage = 0
if U.getBuffOfType(CD) == 0 then
call BT.apply(tower, U, 0)
if U.getSize() < SIZE_BOSS then
call CD.apply(tower, U, 0)
else
call CD.applyOnlyTimed(tower, U, -1)
endif
endif
endfunction
function periodicDmg takes Buff B returns nothing
call B.getCaster().doSpellDamage(B.getBuffedUnit(), 4500, B.getCaster().calcSpellCritNoBonus())
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 BT = BuffType.createDuplicate(cb_stun, 1.8, 0.00, false)
call BT.addPeriodicEvent(periodicDmg, 1.0)
call BT.setBuffIcon('@@1@@')
set CD = BuffType.create(4.8, 0.00, false)
set C = Cast.create('@@0@@', "blizzard", 4.0)
call C.setDamageEvent(overgrowth_dmg)
endfunction
[values] => Array
(
[explain] =>
[visible] => false
[goldcost] => 0
[name] =>
)
)
[1] => Array
(
[name] => On Damage
[code] => local Creep target = Event.getTarget()
local Tower tower = itm.getCarrier()
if Event.isMainTarget() and tower.calcChance(tower.getBaseAttackspeed()*0.06) then
call C.pointCastFromTargetOnTarget( tower, target, 1.0, 1.0 )
call Effect.createColored( "Abilities\\Spells\\NightElf\\EntangleMine\\Roots.mdl", target.getX(), target.getY(), 0.0, 270.0, 1.2, 210, 255, 180, 255 ).setLifetime( 2.5 )
endif
[values] => Array
(
[explain] => On attack the carrier has an |cffFFFF806%|r attackspeed adjusted chance to create a field of overgrowth in |cffFFFF80200|r AoE around the target. Creeps entering the overgrowth will become entangled for |cffFFFF801.8|r seconds, taking |cffFFFF804500|r spell damage per second. Cannot entangle the same creep for |cffFFFF803|r seconds afterwards. Bosses can only be hit once.
[ONDAMAGE_chance] => 1
[visible] => true
[goldcost] => 1500
[name] => Entangling Roots
[ONDAMAGE_chanceLevelAdd] => 0.0
)
)
)
[abilities] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => AHbz
[oeValues] => Array
(
[Cost1] => 0
[Rng1] => 99999
[EfctID1] => @@2@@
[Art] => ReplaceableTextures\CommandButtons\BTNBlizzard.blp
[DataF1] => 99999
[hero] => 0
[DataA1] => 5
[BuffID1] => @@3@@,@@4@@
[DataC1] => 2
[Name] => Overgrowth
[DataB1] => 1
[Cast1] => 0.5
[levels] => 1
)
)
)
[buffs] => Array
(
[0] => Array
(
[id] => @@1@@
[derivedFrom] => BHav
[oeValues] => Array
(
[Targetattach] => origin
[EditorName] => Entangling Roots
[Buffubertip] => This unit is entangled; it cannot move and takes spelldamage over time.
[TargetArt] => Abilities\Spells\NightElf\EntanglingRoots\EntanglingRootsTarget.mdl
[Bufftip] => Entangling Roots
[Buffart] => ReplaceableTextures\CommandButtons\BTNEntanglingRoots.blp
)
)
[1] => Array
(
[id] => @@2@@
[derivedFrom] => XHbz
[oeValues] => Array
(
[EditorName] => Overgrowth (Effekt)
[Effectsoundlooped] => Array
(
)
[EffectArt] => Abilities\Spells\NightElf\EntanglingRoots\EntanglingRootsTarget.mdl
[Effectsound] => Array
(
)
[Buffart] => Array
(
)
)
)
[2] => Array
(
[id] => @@3@@
[derivedFrom] => BHbd
[oeValues] => Array
(
[EditorName] => Overgrowth
[Buffubertip] => This unit is moving through overgrowth.
[TargetArt] => Array
(
)
[Bufftip] => Overgrowth
[Buffart] => ReplaceableTextures\CommandButtons\BTNEntanglingRoots.blp
)
)
[3] => Array
(
[id] => @@4@@
[derivedFrom] => BHbz
[oeValues] => Array
(
[EditorName] => Overgrowth (Zaubernder)
[Buffart] => Array
(
)
)
)
)
[units] => Array
(
)
[references] => Array
(
)
)