fixed refresh rule for unique buffs

This commit is contained in:
Tegiminis 2022-07-26 11:26:36 -07:00
parent a95dea471f
commit 5fa92d8b26

View file

@ -459,6 +459,9 @@ class BuffHandler(object):
b["stacks"] = min(existing["stacks"] + stacks, buff.maxstacks)
elif buff.maxstacks < 1:
b["stacks"] = existing["stacks"] + stacks
# refresh rule for uniques
if not buff.refresh:
b["duration"] = existing["duration"]
# Carrying over old arbitrary cache values
cur_cache = {k: v for k, v in existing.items() if k not in b.keys()}
b.update(cur_cache)