From 6d14ab55d2b96dd2e79bd877856d178ad86a4365 Mon Sep 17 00:00:00 2001 From: ckaotik Date: Wed, 9 Nov 2016 13:42:00 +0100 Subject: [PATCH] Include artifact power for Underlight Angler The fishing relic gets artifact power from throwing back rare fish. If the artifact has not been earned yet, these fish instead give 5 skill points in fishing. --- modules/ArtifactPowerItems.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/ArtifactPowerItems.lua b/modules/ArtifactPowerItems.lua index a20f8ed..e326759 100644 --- a/modules/ArtifactPowerItems.lua +++ b/modules/ArtifactPowerItems.lua @@ -3,6 +3,7 @@ local myname, ns = ... local EMPOWERING = GetSpellInfo(228647) +local THROWBACK = GetSpellInfo(221474) local ldb, ae = LibStub:GetLibrary("LibDataBroker-1.1"), LibStub("AceEvent-3.0") @@ -21,10 +22,12 @@ end local function Test() + local fishingrelic = GetItemCount(133755, true) > 0 for bag=0,4 do for slot=1,GetContainerNumSlots(bag) do local itemid = GetContainerItemID(bag, slot) - if itemid and GetItemSpell(itemid) == EMPOWERING then return itemid end + local spellname = itemid and GetItemSpell(itemid) + if spellname == EMPOWERING or (fishingrelic and spellname == THROWBACK) then return itemid end end end end