remove remaining vehicle

This commit is contained in:
Crum
2018-07-12 09:30:55 -05:00
parent 00de485c0b
commit 5c1eb005e4
23 changed files with 6 additions and 84 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ local mod = math.mod
--WoW API / Variables
local CreateFrame = CreateFrame
local microBar = CreateFrame("Frame", "microBar", E.UIParent)
local microBar = CreateFrame("Frame", "ElvUI_MicroBar", E.UIParent)
microBar:SetFrameStrata("BACKGROUND")
local MICRO_BUTTONS = {
@@ -236,7 +236,7 @@ function UF:AuraBarFilter(unit, name, _, _, _, debuffType, duration, _, unitCast
if db.priority ~= "" then
noDuration = (not duration or duration == 0)
isFriend = unit and UnitIsFriend("player", unit) and not UnitCanAttack("player", unit)
isPlayer = (unitCaster == "player" or unitCaster == "vehicle")
isPlayer = (unitCaster == "player")
isUnit = unit and unitCaster and UnitIsUnit(unit, unitCaster)
canDispell = (self.type == "Buffs" and isStealable) or (self.type == "Debuffs" and debuffType and E:IsDispellableByMe(debuffType))
allowDuration = noDuration or (duration and (duration > 0) and (db.maxDuration == 0 or duration <= db.maxDuration) and (db.minDuration == 0 or duration >= db.minDuration))
+1 -1
View File
@@ -435,7 +435,7 @@ function UF:AuraFilter(unit, button, texture, count, dispelType, duration, expir
if not name then return nil end
local filterCheck, isUnit, isFriend, isPlayer, canDispell, allowDuration, noDuration, spellPriority
isPlayer = (caster == "player" or caster == "vehicle")
isPlayer = (caster == "player")
isFriend = unit and UnitIsFriend("player", unit) and not UnitCanAttack("player", unit)
button.isPlayer = isPlayer