Fix some self references?

main
ck 12 months ago
parent 031c68009c
commit ae0beddcca
  1. 8
      src/EventManager/EventManager.lua
  2. 4
      src/Spell/Spell.lua

@ -9,7 +9,13 @@ local Tinkr, Bastion = ...
---@field wowEventHandlers table<string, { [number]: fun(...) }> ---@field wowEventHandlers table<string, { [number]: fun(...) }>
---@field selfCombatEventHandlers table<string, { [number]: fun(...) }> ---@field selfCombatEventHandlers table<string, { [number]: fun(...) }>
---@field CombatEventHandlers table<string, { [number]: fun(...) }> ---@field CombatEventHandlers table<string, { [number]: fun(...) }>
local EventManager = {} local EventManager = {
events = {},
eventHandlers = {},
wowEventHandlers = {},
selfCombatEventHandlers = {},
CombatEventHandlers = {},
}
EventManager.__index = EventManager EventManager.__index = EventManager
-- Constructor -- Constructor

@ -35,6 +35,7 @@ local Tinkr, Bastion = ...
---@class Bastion.Spell ---@class Bastion.Spell
---@field auras table<spellId, Bastion.Spell.Aura> ---@field auras table<spellId, Bastion.Spell.Aura>
---@field CastableIfFunc false | fun(self:Bastion.Spell):boolean ---@field CastableIfFunc false | fun(self:Bastion.Spell):boolean
---@field conditions { [string]: { func: fun(self:Bastion.Spell):boolean } }
---@field damage number ---@field damage number
---@field damageFormula false | fun(self:Bastion.Spell):number ---@field damageFormula false | fun(self:Bastion.Spell):number
---@field lastCastAt number | false ---@field lastCastAt number | false
@ -91,10 +92,11 @@ function Spell:New(id)
self.lastCastAt = false self.lastCastAt = false
self.lastCastAttempt = false self.lastCastAttempt = false
self.OnCastFunc = false self.OnCastFunc = false
self.overrides = {}
self.PostCastFunc = false self.PostCastFunc = false
self.PreCastFunc = false
self.release_at = false self.release_at = false
self.conditions = {} self.conditions = {}
self.overrides = {}
self.spellID = id self.spellID = id
self.traits = { self.traits = {
cast = { cast = {

Loading…
Cancel
Save