From 0c1377a2c39c303bd858098cfbacd1b9b55c79e9 Mon Sep 17 00:00:00 2001 From: Recaiden <mlwatts45@gmail.com> Date: Wed, 4 Nov 2020 13:50:20 -0600 Subject: [PATCH] restore nowarning targeting option --- game/engines/default/engine/interface/GameTargeting.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/game/engines/default/engine/interface/GameTargeting.lua b/game/engines/default/engine/interface/GameTargeting.lua index 6c2664573f..d587864a43 100644 --- a/game/engines/default/engine/interface/GameTargeting.lua +++ b/game/engines/default/engine/interface/GameTargeting.lua @@ -310,6 +310,7 @@ function _M:targetGetForPlayer(typ) msg = typ.msg end self:targetMode("exclusive", msg, coroutine.running(), typ) + if typ.nowarning then self.target_warning = false end if self.target.target.x and config.settings.auto_accept_target and not typ.immediate_keys and (not typ.nolock or typ.can_autoaccept) and (not typ.nowarning or typ.can_autoaccept) and (not typ.no_restrict or typ.can_autoaccept) then self.target_co = nil self:targetMode(false, false) self.tooltip_x, self.tooltip_y = nil, nil -- GitLab