From 638f555c18008cf76dedeec6e05d962a47b4391a Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 1 May 2010 00:22:33 -0400 Subject: [PATCH] Renamed Player:IsCorrectFaction() to Player:HasRecipeFaction() --- ARL.lua | 5 ++--- Player.lua | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ARL.lua b/ARL.lua index b4bfd04..727c919 100644 --- a/ARL.lua +++ b/ARL.lua @@ -513,7 +513,7 @@ function addon:OnInitialize() local skill_level = Player.professions[recipe_prof] local has_level = skill_level and (type(skill_level) == "boolean" and true or skill_level >= recipe.skill_level) - if ((not recipe:HasState("KNOWN") and has_level) or shifted) and Player:IsCorrectFaction(recipe) then + if ((not recipe:HasState("KNOWN") and has_level) or shifted) and Player:HasRecipeFaction(recipe) then local _, _, _, hex = GetItemQualityColor(recipe.quality) self:AddLine(string.format("%s: %s%s|r (%d)", recipe.profession, hex, recipe.name, recipe.skill_level)) @@ -1346,7 +1346,6 @@ do -- For flag info see comments at start of file in comments local function CanDisplayRecipe(recipe) if addon.db.profile.exclusionlist[recipe.spell_id] and not addon.db.profile.ignoreexclusionlist then - addon:Debug("Recipe \"%s\" has been excluded.", recipe.name) return false end local filter_db = addon.db.profile.filters @@ -1361,7 +1360,7 @@ do ------------------------------------------------------------------------------- -- Display both horde and alliance factions? - if not general_filters.faction and not Player:IsCorrectFaction(recipe) then + if not general_filters.faction and not Player:HasRecipeFaction(recipe) then return false end diff --git a/Player.lua b/Player.lua index 9e83fdd..5674be0 100644 --- a/Player.lua +++ b/Player.lua @@ -118,7 +118,7 @@ function Player:HasProperRepLevel(rep_data) return has_faction end -function Player:IsCorrectFaction(recipe) +function Player:HasRecipeFaction(recipe) local flagged_horde = recipe:IsFlagged("common1", "HORDE") local flagged_alliance = recipe:IsFlagged("common1", "ALLIANCE") -- 1.7.9.5