mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
don't attempt to increase duration of stackable buffs
This commit is contained in:
parent
e720ee834e
commit
2249ca6a49
@ -816,7 +816,8 @@ impl Buffs {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// If another buff with the same fields is found, update end_time and effects
|
// If another buff with the same fields is found, update end_time and effects
|
||||||
let key = if let Some((other_buff, key)) =
|
let key = if !kind.stacks()
|
||||||
|
&& let Some((other_buff, key)) =
|
||||||
other_key.and_then(|key| Some((self.buffs.get_mut(key)?, key)))
|
other_key.and_then(|key| Some((self.buffs.get_mut(key)?, key)))
|
||||||
{
|
{
|
||||||
other_buff.end_time = buff.end_time;
|
other_buff.end_time = buff.end_time;
|
||||||
|
Loading…
Reference in New Issue
Block a user