Skip to content

Commit 037e3a1

Browse files
Gate DeepSnail’s Ooze proc to adjacent targets
defenceProc now verifies adjacency via self:adjacent(enemy) before applying Ooze, preventing ranged or non-adjacent triggers and aligning the debuff with melee contact behavior.
1 parent 6aa2752 commit 037e3a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

RemixedDungeon/src/main/assets/scripts/mobs/DeepSnail.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ local mob = require "scripts/lib/mob"
1010
return mob.init{
1111
defenceProc = function(self, enemy, dmg)
1212
if math.random() < 0.2 then
13-
RPD.affectBuff(enemy, "Ooze", self:skillLevel())
13+
local isAdjacent = self:adjacent(enemy)
14+
15+
if isAdjacent then
16+
RPD.affectBuff(enemy, "Ooze", self:skillLevel())
17+
end
1418
end
1519
end
1620
}

0 commit comments

Comments
 (0)