diff --git a/lib/spell/effect.lua b/lib/spell/effect.lua index c1c1e62..87e78ae 100644 --- a/lib/spell/effect.lua +++ b/lib/spell/effect.lua @@ -168,7 +168,7 @@ local function new(data) --- @param other Effect --- @return boolean function newEffect:__eq(other) - return utils.deepComprasion(self, other) + return utils.deepComparison(self, other) end return newEffect diff --git a/lib/utils/utils.lua b/lib/utils/utils.lua index f152dde..053f2eb 100644 --- a/lib/utils/utils.lua +++ b/lib/utils/utils.lua @@ -78,10 +78,10 @@ end --- @param t1 table --- @param t2 table --- @return boolean -function P.deepComprasion(t1, t2) +function P.deepComparison(t1, t2) for k, v in pairs(t1) do if type(v) == "table" and type(t2[k]) == "table" then - return P.deepComprasion(v, t2[k]) + return P.deepComparison(v, t2[k]) end if t2[k] ~= v then return false