|
|
@ -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 = { |
|
|
|