Array
(
[scriptVersion] => 8
[oeValues] => Array
(
[Ubertip] => Delivers a quick burst of energy, but should be consumed sparingly!
[Art] => ReplaceableTextures\CommandButtons\BTNEatTree.blp
[abilList] => Array
(
)
[Name] => Crunchy Chocolate Bar
)
[settings] => Array
(
[balanceTip] => |n|cffFFFF80Specials:|r|n|cffFFFF00+40% |rattackspeed
[goldcost] => 600
[author] => Moppy
[authorDisplay] => |c006969FFMoppy|r
[version] => 1.0
[rarity] => rare
)
[dmgTable] => Array
(
[0] => Array
(
[id] => MOD_ATTACKSPEED
[base] => 0.4
[add] => 0
)
)
[triggers] => Array
(
[0] => Array
(
[name] => On Attack
[code] => local Tower t = itm.getCarrier()
if t.getBuffOfGroup("moppy_diabetic_shock") == 0 then
if t.calcBadChance(0.1 * t.getBaseAttackspeed()) then
call moppy_diabetic_shock_debuff.apply(t, t, t.getLevel())
endif
endif
[values] => Array
(
[explain] => On attack, there is a |cffFFFF8010%|r attack speed adjusted chance to trigger a diabetic shock, reducing attack and spell damage by |cffFFFF8050%|r for |cffFFFF8010|r seconds. Cannot retrigger while active!|n|n|cffFF8000Level Bonus:|r|n|cffFFFF80-1%|r attack and spell damage loss
[visible] => true
[goldcost] => -2363
[name] => Diabetic Shock
[ONATTACK_chance] => 1.0
[ONATTACK_chanceLevelAdd] => 0.0
)
)
[1] => Array
(
[name] => Header
[code] => globals
BuffType moppy_diabetic_shock_debuff
endglobals
//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 m = Modifier.create()
call m.addModification(MOD_DAMAGE_ADD_PERC, -0.5, 0.01)
call m.addModification(MOD_SPELL_DAMAGE_DEALT, -0.5, 0.01)
set moppy_diabetic_shock_debuff = BuffType.create(10, 0, false)
call moppy_diabetic_shock_debuff.setBuffModifier(m)
call moppy_diabetic_shock_debuff.setBuffIcon('@@0@@')
call moppy_diabetic_shock_debuff.setStackingGroup("moppy_diabetic_shock")
endfunction
[values] => Array
(
[explain] =>
[visible] => false
[goldcost] => 0
[name] =>
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
[0] => Array
(
[id] => @@0@@
[derivedFrom] => BNab
[oeValues] => Array
(
[Targetattach] => head
[EditorName] => Diabetic Shock
[Buffubertip] => Reduced attack and spell damage.
[TargetArt] => Abilities\Spells\Orc\StasisTrap\StasisTotemTarget.mdl
[Bufftip] => Diabetic Shock
[Buffart] => ReplaceableTextures\CommandButtons\BTNEatTree.blp
)
)
)
[units] => Array
(
)
[references] => Array
(
)
)