From 5db2f059d8000c4f21c68cde08045c20b27ecb73 Mon Sep 17 00:00:00 2001 From: 4n0n <4n0n@tinkr.site> Date: Sun, 20 Aug 2023 17:20:52 -0500 Subject: [PATCH] Add Spell:Fresh() --- src/Spell/Spell.lua | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Spell/Spell.lua b/src/Spell/Spell.lua index 62e0bc2..1cdc0a8 100644 --- a/src/Spell/Spell.lua +++ b/src/Spell/Spell.lua @@ -12,11 +12,11 @@ local Spell = { lastCastAt = false, conditions = {}, target = false, - release_at = false, + release_at = false } local usableExcludes = { - [18562] = true, + [18562] = true } function Spell:__index(k) @@ -57,6 +57,12 @@ function Spell:New(id) return self end +-- Duplicator +---@return Spell +function Spell:Fresh() + return Spell:New(self:GetID()) +end + -- Get the spells id ---@return number function Spell:GetID() @@ -523,9 +529,7 @@ end -- IsDiseaseDispel ---@return boolean function Spell:IsDiseaseDispel() - return ({ - - })[self:GetID()] + return ({})[self:GetID()] end -- IsSpell