Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[Ubertip] => Leave nothing but ashes in your wake.
[Art] => ReplaceableTextures\CommandButtons\BTNOrbOfFire.blp
[abilList] => Array
(
)
[Name] => Orb of Ash
)
[settings] => Array
(
[balanceTip] => Array
(
)
[goldcost] => 2000
[author] => Ashbringer
[authorDisplay] => |cffFF6600Ashbringer|r
[version] => 1.0
[rarity] => unique
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => Header
[code] => globals
BuffType ashbringer_orb_of_ash
endglobals
function ashbringer_orb_of_ash_periodic takes Buff b returns nothing
local Tower tower = b.getCaster()
local Creep target = b.getBuffedUnit()
local real damage
if b.userInt > 0 and b.userReal > 0 then
set damage = b.userReal / I2R(b.userInt)
call tower.doCustomAttackDamage(target, damage, 1.0, AttackType.ELEMENTAL)
set b.userInt = b.userInt - 1
set b.userReal = b.userReal - damage
endif
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_orb_of_ash = BuffType.create(10.0, 0.0, false)
call ashbringer_orb_of_ash.setBuffIcon('@@0@@')
call ashbringer_orb_of_ash.addPeriodicEvent(ashbringer_orb_of_ash_periodic, 1.0)
endfunction
[values] => Array
(
[explain] =>
[visible] => false
[goldcost] => 0
[name] =>
)
)
[1] => Array
(
[name] => On Damage
[code] => local Tower tower = itm.getCarrier()
local Creep target = Event.getTarget()
local Buff b = target.getBuffOfType(ashbringer_orb_of_ash)
local real damage = tower.getCurrentAttackDamageWithBonus() * Event.getCriticalMultiplier() * 0.35
if b != 0 then
set b.userReal = b.userReal + (damage)
set b.userInt = 10
call b.setRemainingDuration(10)
else
set b = ashbringer_orb_of_ash.apply(tower, target, 1)
set b.userReal = damage
set b.userInt = 10
endif
[values] => Array
(
[explain] => Attack hits cause the enemy to burn for |cffFFFF8035%|r of the damage dealt as |cffFF8000Elemental|r damage over |cffFFFF8010|r seconds. This damage over time can accumulate but cannot crit.
[ONDAMAGE_chance] => 1.0
[visible] => true
[goldcost] => 2000
[name] => Wake of Ash
[ONDAMAGE_chanceLevelAdd] => 0.0
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => Binf
[oeValues] => Array
(
[Targetattach] => chest
[Buffubertip] => Taking |cffFF8000Elemental|r damage over time.
[TargetArt] => Abilities\Spells\Other\ImmolationRed\ImmolationRedDamage.mdl
[Bufftip] => Orb of Ash
[Buffart] => ReplaceableTextures\CommandButtons\BTNOrbOfFire.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
)