mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Implement #1105: Rolling removes burning debuff
This commit is contained in:
parent
ad3a63fc80
commit
3d17fde537
@ -1,5 +1,9 @@
|
||||
use crate::{
|
||||
comp::{CharacterState, InputKind, StateUpdate},
|
||||
comp::{
|
||||
buff::{BuffChange, BuffKind},
|
||||
CharacterState, InputKind, StateUpdate,
|
||||
},
|
||||
event::ServerEvent,
|
||||
states::{
|
||||
behavior::{CharacterBehavior, JoinData},
|
||||
utils::*,
|
||||
@ -52,6 +56,11 @@ impl CharacterBehavior for Data {
|
||||
match self.stage_section {
|
||||
StageSection::Buildup => {
|
||||
handle_move(data, &mut update, 1.0);
|
||||
// Remove burning effect if active
|
||||
update.server_events.push_front(ServerEvent::Buff {
|
||||
entity: data.entity,
|
||||
buff_change: BuffChange::RemoveByKind(BuffKind::Burning),
|
||||
});
|
||||
if self.timer < self.static_data.buildup_duration {
|
||||
// Build up
|
||||
update.character = CharacterState::Roll(Data {
|
||||
|
Loading…
Reference in New Issue
Block a user