fixed refresh rule for unique buffs
This commit is contained in:
parent
a95dea471f
commit
5fa92d8b26
1 changed files with 3 additions and 0 deletions
|
|
@ -459,6 +459,9 @@ class BuffHandler(object):
|
||||||
b["stacks"] = min(existing["stacks"] + stacks, buff.maxstacks)
|
b["stacks"] = min(existing["stacks"] + stacks, buff.maxstacks)
|
||||||
elif buff.maxstacks < 1:
|
elif buff.maxstacks < 1:
|
||||||
b["stacks"] = existing["stacks"] + stacks
|
b["stacks"] = existing["stacks"] + stacks
|
||||||
|
# refresh rule for uniques
|
||||||
|
if not buff.refresh:
|
||||||
|
b["duration"] = existing["duration"]
|
||||||
# Carrying over old arbitrary cache values
|
# Carrying over old arbitrary cache values
|
||||||
cur_cache = {k: v for k, v in existing.items() if k not in b.keys()}
|
cur_cache = {k: v for k, v in existing.items() if k not in b.keys()}
|
||||||
b.update(cur_cache)
|
b.update(cur_cache)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue