From 8ad68f914df42815d470f78e259d05eccc0dcc0f Mon Sep 17 00:00:00 2001 From: PeaAshMeter Date: Mon, 19 Jan 2026 13:03:47 +0300 Subject: [PATCH] make walk:cast stateless --- lib/spellbook.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spellbook.lua b/lib/spellbook.lua index a2e5608..a4ec146 100644 --- a/lib/spellbook.lua +++ b/lib/spellbook.lua @@ -38,7 +38,7 @@ function walk:cast(caster, target) return false end - local path = self.path + local path = require "lib.pathfinder" (caster:has(Tree.behaviors.positioned).position:floor(), target) path:pop_front() if path:is_empty() then return false end