Merge pull request 'main' (#5) from Bastion/Bastion:main into main

Reviewed-on: CiscOH/Bastion#5
main^2
CiscOH 1 year ago
commit 4680344e6f
  1. 14
      src/Spell/Spell.lua

@ -12,11 +12,11 @@ local Spell = {
lastCastAt = false, lastCastAt = false,
conditions = {}, conditions = {},
target = false, target = false,
release_at = false, release_at = false
} }
local usableExcludes = { local usableExcludes = {
[18562] = true, [18562] = true
} }
function Spell:__index(k) function Spell:__index(k)
@ -57,6 +57,12 @@ function Spell:New(id)
return self return self
end end
-- Duplicator
---@return Spell
function Spell:Fresh()
return Spell:New(self:GetID())
end
-- Get the spells id -- Get the spells id
---@return number ---@return number
function Spell:GetID() function Spell:GetID()
@ -523,9 +529,7 @@ end
-- IsDiseaseDispel -- IsDiseaseDispel
---@return boolean ---@return boolean
function Spell:IsDiseaseDispel() function Spell:IsDiseaseDispel()
return ({ return ({})[self:GetID()]
})[self:GetID()]
end end
-- IsSpell -- IsSpell

Loading…
Cancel
Save