Mercurial > wow > ouroloot
comparison bossmods.lua @ 106:095ee38508e8
Warn if restoring ridonkulous amount of data. Placeholder values for MoP raids.
author | Farmbuyer of US-Kilrogg <farmbuyer@gmail.com> |
---|---|
date | Sun, 05 Aug 2012 19:08:53 +0000 |
parents | c01875b275ca |
children | ce45011fab4c |
comparison
equal
deleted
inserted
replaced
105:646c9b41aaed | 106:095ee38508e8 |
---|---|
56 end | 56 end |
57 | 57 |
58 local function DBMBossCallback (self, reason, mod, ...) | 58 local function DBMBossCallback (self, reason, mod, ...) |
59 if (not self.rebroadcast) and (not self.enabled) then return end | 59 if (not self.rebroadcast) and (not self.enabled) then return end |
60 | 60 |
61 -- Behavior based on the first arg to DBM:NewMod. Old style is just | |
62 -- a boss name, which is set as mod.id and *should* also be set as | |
63 -- combatinfo.name. New style is the "encounter ID", fed through the | |
64 -- EJ_GetEncounterInfo API to get the name, and then stripped down | |
65 -- to the first comma (if any). | |
61 local name | 66 local name |
62 if mod.combatInfo and mod.combatInfo.name then | 67 if mod.combatInfo and mod.combatInfo.name then |
63 name = mod.combatInfo.name | 68 name = mod.combatInfo.name |
64 elseif mod.id then | 69 elseif mod.id then |
65 name = mod.id | 70 name = mod.id |