Skip to content

Commit

Permalink
remove unneeded checks
Browse files Browse the repository at this point in the history
  • Loading branch information
myk002 committed Aug 10, 2024
1 parent ee81c73 commit c8bd23f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/notify/notifications.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,9 @@ local function for_wildlife(fn, reverse)
not unit.flags1.caged and
not unit.flags1.chained and
not dfhack.units.isHidden(unit) and
not dfhack.units.isFortControlled(unit) and
not dfhack.units.isDanger(unit) and
not is_stealer(unit) and
not dfhack.units.isMischievous(unit) and
not dfhack.units.isMerchant(unit) and
not dfhack.units.isForest(unit) and
not dfhack.units.isVisitor(unit)
end, fn, reverse)
end
Expand Down

0 comments on commit c8bd23f

Please sign in to comment.