Mana Stone v1 800
lvl: 31
|
ID: 131
Author: F12ight
Rarity: rare
Status: Approved
|
Mana Charge
On every 3rd attack the carrier regenerates 1% of its maximum mana.
Absorb
Whenever the carrier kills a creep it regenerates 3% of its maximum mana.
Mana Aura
Increases mana regeneration of all towers in 200 range of the carrier by 7.5%. |
Download
Toggle Triggers Header
goldcost: 0
globals
BuffType fright_mana_aura
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()
set fright_mana_aura = BuffType.createAuraEffectType(true)
call m.addModification(MOD_MANA_REGEN_PERC,0.075,0)
call fright_mana_aura.setBuffModifier(m)
call fright_mana_aura.setBuffIcon('@@0@@')
endfunction
On Attack
goldcost: 0
ONATTACK_chance: 1.0
ONATTACK_chanceLevelAdd: 0.0
function onAttack takes Item itm returns nothing
set itm.userInt = itm.userInt +1
if itm.userInt == 3 then
call itm.getCarrier().addManaPerc(0.01)
set itm.userInt = 0
endif
endfunction
On Item Pickup
goldcost: 0
function onPickup takes Item itm returns nothing
set itm.userInt = 0
endfunction
On Kill
goldcost: 200
function onKill takes Item itm returns nothing
local Tower tower = itm.getCarrier()
call tower.addManaPerc(0.03)
call Effect.createScaled("Abilities\\Spells\\Undead\\ReplenishMana\\SpiritTouchTarget.mdl", tower.getX(), tower.getY(), 10.0, 0, 1.2).destroy()
endfunction
Tower Aura
AURA_levelAdd: 1
AURA_targetType: TARGET_TYPE_TOWERS
AURA_auraRange: 200
AURA_powerAdd: 1
AURA_targetSelf: true
goldcost: 600
AURA_auraEffect: fright_mana_aura
AURA_power: 0
AURA_level: 0
|
Description:
Latest Upload Comment: