Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- createAura({
- name = "Vitality Aura",
- auraAbility = "A09D",
- dummyAbility = "A0A1",
- buff = "B00A",
- buffEffect = "Abilities\\Spells\\Human\\Heal\\HealTarget.mdl",
- range = 900,
- cooldown = 1,
- delay = 1,
- values = {
- regen = { 2, 3, 4 },
- threshold = 0.5
- },
- condition = function(source, target)
- return IsUnitAlly(target, GetOwningPlayer(source)) and
- GetUnitState(target, UNIT_STATE_LIFE) < values.threshold * BlzGetUnitMaxHP(target)
- end,
- periodic = function(whichUnit, source, values)
- print("Periodic effect")
- SetUnitState(whichUnit, UNIT_STATE_LIFE,
- GetUnitState(whichUnit, UNIT_STATE_LIFE) + values.regen)
- end
- })
Advertisement
Add Comment
Please, Sign In to add comment