From 94198b97b56c8ccd4df4357541ac884714536df0 Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 4 Aug 2009 18:53:41 +0000 Subject: [PATCH] Fix pvp flag datamining so that if we're a vendor, and the pvp flag is set, make sure we aren't in halaa or WG before spewing out an erroneous error. --- ARLDatamine.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 3215d13..45bf97d 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1569,14 +1569,17 @@ do twipe(missing_flags) twipe(extra_flags) + -- If we're a vendor scan, do some extra checks if (scan_data.is_vendor) then + -- Check to see if the vendor flag is set if (not flags[4]) then tinsert(missing_flags,"4 (Vendor)") end + -- Check to see if we're in a PVP zone if (((GetSubZoneText() == "Wintergrasp Fortress") or (GetSubZoneText() == "Halaa")) and (not flags[9])) then tinsert(missing_flags,"9 (PvP)") - elseif (flags[9]) then + elseif ((flags[9]) and not ((GetSubZoneText() == "Wintergrasp Fortress") or (GetSubZoneText() == "Halaa"))) then tinsert(extra_flags,"9 (PvP)") end end -- 1.7.9.5