Skip to content

Commit f8af306

Browse files
authored
Merge pull request #1342 from myk002/myk_wildlife_caged
[fix/wildlife] don't vaporize caged or restrained wildlife
2 parents e71f214 + fec52cb commit f8af306

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fix/wildlife.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ local function unstick_surface_wildlife(opts)
120120
if not is_active_wildlife(unit) or unit.animal.leave_countdown > 0 then
121121
goto skip
122122
end
123+
if unit.flags1.caged or unit.flags1.chained then
124+
goto skip
125+
end
123126
if not check_timeout(opts, unit, week_ago_ticks) then
124127
goto skip
125128
end

0 commit comments

Comments
 (0)