Subject | Hash | Author | Date (UTC) |
---|---|---|---|
fix!: No longer crash on unknown spell | 65061085f0f55b75910c9ed4d8249b1e8e30f9ee | Vladyslav Bondarenko | 2020-12-11 17:31:16 |
fix: Render indicators properly on first login | bf102cc749cc23d3769a82f10fe93a05afc5277f | Vladyslav Bondarenko | 2020-12-11 14:25:11 |
feat: Add Serendipity and Surge of Light indicators | ba1d0f32a4b8f4f5d4e2730f0a4e409e23b52974 | Vladyslav Bondarenko | 2020-12-10 16:19:55 |
Initial commit | 9b3df418e373218125fec12271084afebb11cfc2 | Vladyslav Bondarenko | 2020-12-04 10:27:24 |
File | Lines added | Lines deleted |
---|---|---|
gradle.properties | 1 | 1 |
src/ClearcastingFrame.lua | 4 | 2 |
File gradle.properties changed (mode: 100644) (index 5c78b53..b00d4f1) | |||
1 | version=0.0.3-SNAPSHOT | ||
1 | version=0.0.4-SNAPSHOT |
File src/ClearcastingFrame.lua changed (mode: 100644) (index b5ba4e2..103353d) | |||
... | ... | end | |
302 | 302 | Use unique aura identifier when possible. | Use unique aura identifier when possible. |
303 | 303 | Otherwise use aura name. Function may fail when given spell name. | Otherwise use aura name. Function may fail when given spell name. |
304 | 304 | An aura is either a spell in character spell book or talent effect. | An aura is either a spell in character spell book or talent effect. |
305 | Given unique identifier of a currently unavailable ability | ||
306 | the function produces an error. | ||
305 | 307 | ]] | ]] |
306 | 308 | local function isSpellAvailable(eitherSpellIdOrName) | local function isSpellAvailable(eitherSpellIdOrName) |
307 | 309 | local n = GetSpellInfo(eitherSpellIdOrName) | local n = GetSpellInfo(eitherSpellIdOrName) |
... | ... | local function initIndicator(rootFrame, auraName, column, row, auraId) | |
331 | 333 | assert (auraId >= 1, '[Clearcasting]: invalid aura identifier') | assert (auraId >= 1, '[Clearcasting]: invalid aura identifier') |
332 | 334 | end | end |
333 | 335 | ||
334 | if not isSpellAvailable(auraId) then | ||
335 | error('[Clearcasting]: cannot initialise spell "' .. tostring(auraName) .. '" ' .. | ||
336 | if not isSpellAvailable(auraName) then | ||
337 | print('[Clearcasting]: cannot initialise spell "' .. tostring(auraName) .. '" ' .. | ||
336 | 338 | 'aura identifier ' .. tostring(auraId) .. ' (line 343)') | 'aura identifier ' .. tostring(auraId) .. ' (line 343)') |
337 | 339 | end | end |
338 | 340 |