mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Made auras no longer need to be mutably accessed every tick.
This commit is contained in:
@ -432,6 +432,7 @@ impl StateExt for State {
|
||||
aura::{Aura, AuraKind, AuraTarget, Auras},
|
||||
buff::{BuffCategory, BuffData, BuffKind, BuffSource},
|
||||
};
|
||||
let time = self.get_time();
|
||||
self.ecs_mut()
|
||||
.create_entity_synced()
|
||||
.with(pos)
|
||||
@ -445,6 +446,7 @@ impl StateExt for State {
|
||||
range.unwrap_or(100.0),
|
||||
None,
|
||||
AuraTarget::All,
|
||||
Time(time),
|
||||
)]))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user