From 6dbfda18ea2adea6ac7ebc3426cc5e068f223655 Mon Sep 17 00:00:00 2001 From: Alar of Runetotem Date: Wed, 2 Nov 2016 13:20:31 +0100 Subject: [PATCH] If OrderHallCommander present ignores hall champions --- FollowerCache.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/FollowerCache.lua b/FollowerCache.lua index 0ff14fa..90dae5d 100644 --- a/FollowerCache.lua +++ b/FollowerCache.lua @@ -62,13 +62,14 @@ function cache:new(type) setmetatable(rc.cache,{__index=function(t,k) return EMPTY end}) return rc end -function cache:OnEvent(event,...) - +function cache:OnEvent(event,followerType,followerID) --@debug@ -print(event,...) + if followerType==LE_FOLLOWER_TYPE_GARRISON_7_0 and ns.ignoreHall then + return + end +print(event,followerType,followerID) --@end-debug@ if event=="GARRISON_FOLLOWER_UPGRADED" or event=="GARRISON_FOLLOWER_XP_CHANGED" then - local followerType,followerID=... if (self.cache[followerID]) then self.cache[followerID]['level']=G.GetFollowerLevel(followerID) self.cache[followerID]['xp']=G.GetFollowerXP(followerID) -- 1.7.9.5