mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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)
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue