# HG changeset patch # User MMOSimca # Date 1477509179 14400 # Node ID 16498dc5159f08bf584b3b78716a68462c54d1ff # Parent c28db7237ba2f9efb30c903a74bdf81bd47fe67f Fixed debug spam from 7.1 changes to unit coordinates in instances. diff -r c28db7237ba2 -r 16498dc5159f Main.lua --- a/Main.lua Tue Oct 25 19:46:20 2016 -0400 +++ b/Main.lua Wed Oct 26 15:12:59 2016 -0400 @@ -475,7 +475,9 @@ end local zone_name, area_id, x, y, map_level, difficulty_token = CurrentLocationData() if not (zone_name and area_id and x and y and map_level) then - Debug("UpdateDBEntryLocation: Missing current location data - %s, %s, %s, %s, %s.", tostring(zone_name), tostring(area_id), tostring(x), tostring(y), tostring(map_level)) + if not (_G.IsInInstance()) then + Debug("UpdateDBEntryLocation: Missing current location data - %s, %s, %s, %s, %s.", tostring(zone_name), tostring(area_id), tostring(x), tostring(y), tostring(map_level)) + end return end local entry = DBEntry(entry_type, identifier) @@ -1308,7 +1310,9 @@ end local zone_name, area_id, x, y, map_level, difficulty_token = CurrentLocationData() if not (zone_name and area_id and x and y and map_level) then - Debug("UpdateTargetLocation: Missing current location data - %s, %s, %s, %s, %s.", tostring(zone_name), tostring(area_id), tostring(x), tostring(y), tostring(map_level)) + if not (_G.IsInInstance()) then + Debug("UpdateTargetLocation: Missing current location data - %s, %s, %s, %s, %s.", tostring(zone_name), tostring(area_id), tostring(x), tostring(y), tostring(map_level)) + end return end local npc_data = npc:EncounterData(difficulty_token).stats[("level_%d"):format(_G.UnitLevel("target"))] @@ -2204,7 +2208,9 @@ -- Set up a proper 'fishing' current_action table local zone_name, area_id, x, y, map_level, instance_token = CurrentLocationData() if not (zone_name and area_id and x and y and map_level) then - Debug("%s: Missing current location data - %s, %s, %s, %s, %s.", log_source, tostring(zone_name), tostring(area_id), tostring(x), tostring(y), tostring(map_level)) + if not (_G.IsInInstance()) then + Debug("%s: Missing current location data - %s, %s, %s, %s, %s.", log_source, tostring(zone_name), tostring(area_id), tostring(x), tostring(y), tostring(map_level)) + end return end current_action.instance_token = instance_token @@ -2857,7 +2863,9 @@ local spell_flags = private.SPELL_FLAGS_BY_LABEL[spell_label] local zone_name, area_id, x, y, map_level, instance_token = CurrentLocationData() if not (zone_name and area_id and x and y and map_level) then - Debug("%s: Missing current location data - %s, %s, %s, %s, %s.", event_name, tostring(zone_name), tostring(area_id), tostring(x), tostring(y), tostring(map_level)) + if not (_G.IsInInstance()) then + Debug("%s: Missing current location data - %s, %s, %s, %s, %s.", event_name, tostring(zone_name), tostring(area_id), tostring(x), tostring(y), tostring(map_level)) + end return end