Array
(
[scriptVersion] => 7
[oeValues] => Array
(
[Ubertip] => Power! Unlimited power!
[Art] => replaceabletextures\commandbuttons\BTNneutralManaShieldOff.blp
[abilList] => Array
(
)
[Name] => Circle of Power
)
[settings] => Array
(
[balanceTip] => Array
(
)
[goldcost] => 450
[author] => Deemzul
[authorDisplay] => Deemzul
[version] => 1.0
[rarity] => unique
)
[dmgTable] => Array
(
)
[triggers] => Array
(
[0] => Array
(
[name] => On Item Pickup
[code] => set itm.userReal = GetUnitState(itm.getCarrier().getUnit(),UNIT_STATE_MANA)
[values] => Array
(
[explain] =>
[visible] => false
[goldcost] => 0
[name] =>
)
)
[1] => Array
(
[name] => Periodic
[code] => local Unit u = itm.getCarrier()
local real curMana = GetUnitState(u.getUnit(),UNIT_STATE_MANA)
if curMana < itm.userReal and u.calcChance(0.25) then
call SetUnitState(u.getUnit(), UNIT_STATE_MANA, itm.userReal)
call Effect.createSimpleAtUnit("Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl",u).destroy()
else //had more mana or failed chance
set itm.userReal = curMana
endif
[values] => Array
(
[explain] => Every |cffFFFF805|r seconds, if the carrier of this item has less mana than it had |cffFFFF805|r seconds ago, the carrier has a |cffFFFF8025%|r chance to restore mana to what it was before.
[visible] => true
[goldcost] => 450
[PERIODIC_period] => 5
[name] => Circle of Power
)
)
)
[abilities] => Array
(
)
[buffs] => Array
(
)
[units] => Array
(
)
[references] => Array
(
)
)