From 063b4162171c6c62b0ec195dee47d4ab6c5c0892 Mon Sep 17 00:00:00 2001 From: ivy <119665497+lvlvllvlvllvlvl@users.noreply.github.com> Date: Thu, 14 Sep 2023 08:03:18 +0700 Subject: [PATCH] filter mod stats granted by buff --- PyPoE/cli/exporter/wiki/parsers/mods.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PyPoE/cli/exporter/wiki/parsers/mods.py b/PyPoE/cli/exporter/wiki/parsers/mods.py index dddfee30..a680b3c3 100644 --- a/PyPoE/cli/exporter/wiki/parsers/mods.py +++ b/PyPoE/cli/exporter/wiki/parsers/mods.py @@ -259,9 +259,10 @@ def handler(hstr, parameter): stats = [] values = [] + buffstats = mod["BuffTemplate"]["StatsKey"] if mod["BuffTemplate"] else [] for i in MOD_STATS_RANGE: k = mod["StatsKey%s" % i] - if k is None: + if k is None or k in buffstats: continue stat = k["Id"]