Advertisement
Guest User

Untitled

a guest
Oct 17th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. local function log_auraapply(set, aura)
  2. if set then
  3.  
  4. -- Get the player.
  5. local player = Skada:get_player(set, aura.playerid, aura.playername)
  6. if player then
  7. --Skada:Print("applied "..aura.spellname.. " to "..player.name.. " - "..tostring(aura.auratype))
  8. -- Add aura to player if it does not exist.
  9. -- If it does exist, increment our counter of active instances by 1
  10. if not player.auras[aura.spellname] then
  11. player.auras[aura.spellname] = {["id"] = aura.spellid, ["name"] = aura.spellname, ["active"] = 1, ["uptime"] = 0, ["auratype"] = aura.auratype, ["started"] = time()}
  12. else
  13. player.auras[aura.spellname].active = player.auras[aura.spellname].active + 1
  14. player.auras[aura.spellname].started = player.auras[aura.spellname].started or time()
  15. end
  16. end
  17.  
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement