Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function log_auraapply(set, aura)
- if set then
- -- Get the player.
- local player = Skada:get_player(set, aura.playerid, aura.playername)
- if player then
- --Skada:Print("applied "..aura.spellname.. " to "..player.name.. " - "..tostring(aura.auratype))
- -- Add aura to player if it does not exist.
- -- If it does exist, increment our counter of active instances by 1
- if not player.auras[aura.spellname] then
- player.auras[aura.spellname] = {["id"] = aura.spellid, ["name"] = aura.spellname, ["active"] = 1, ["uptime"] = 0, ["auratype"] = aura.auratype, ["started"] = time()}
- else
- player.auras[aura.spellname].active = player.auras[aura.spellname].active + 1
- player.auras[aura.spellname].started = player.auras[aura.spellname].started or time()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement