Skip to content

Commit

Permalink
apply InCombatLockdownRestriction for classic era
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuds authored and Stanzilla committed Feb 7, 2024
1 parent 0dd0b92 commit 6222731
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LibRangeCheck-3.0/LibRangeCheck-3.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ License: MIT
-- @class file
-- @name LibRangeCheck-3.0
local MAJOR_VERSION = "LibRangeCheck-3.0"
local MINOR_VERSION = 11
local MINOR_VERSION = 12

---@class lib
local lib, oldminor = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION)
Expand All @@ -50,9 +50,9 @@ end

local isRetail = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
local isWrath = WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC

local isEra = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
local InCombatLockdownRestriction
if isRetail then
if isRetail or isEra then
InCombatLockdownRestriction = function(unit) return InCombatLockdown() and not UnitCanAttack("player", unit) end
else
InCombatLockdownRestriction = function() return false end
Expand Down

0 comments on commit 6222731

Please sign in to comment.