Prevent playing wield/unwield sfx when the playing starts and ends rolling.

This commit is contained in:
Shane Handley 2020-03-01 21:51:45 +09:00
parent 0456016265
commit 5dbc9b3b84

View File

@ -157,10 +157,11 @@ impl MovementEventMapper {
{
if let Some(wield_event) = match (
previous_event.weapon_drawn,
current_event.action.is_roll(),
Self::has_weapon_drawn(current_event.action),
) {
(false, true) => Some(SfxEvent::Wield(kind)),
(true, false) => Some(SfxEvent::Unwield(kind)),
(false, false, true) => Some(SfxEvent::Wield(kind)),
(true, false, false) => Some(SfxEvent::Unwield(kind)),
_ => None,
} {
return wield_event;