From 4787ff302941ae99b022176a77edfc90eb1197e5 Mon Sep 17 00:00:00 2001 From: Wrycu Date: Sun, 8 Oct 2023 22:20:29 -0700 Subject: [PATCH] fix(animations): correct animation for gunnery and grenades --- scripts/animation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/animation.js b/scripts/animation.js index 36f66cd..8dc3ea0 100644 --- a/scripts/animation.js +++ b/scripts/animation.js @@ -384,7 +384,7 @@ async function play_animation(animation_file, sound_file, skill, source, count) var lower_bound = 2; var num_shots = parseInt(count); } - } else if (["Melee", "Brawl", "Lightsaber"].indexOf(skill) > -1) { + } else if (["Melee", "Brawl", "Lightsaber"].indexOf(skill) > -1 || skill === "grenade") { // noinspection JSDuplicatedDeclaration var lower_bound = 1; var num_shots = 1; @@ -404,7 +404,7 @@ async function play_animation(animation_file, sound_file, skill, source, count) }, angle: -90, }; - } else if (skill.toLowerCase().includes("ranged")) { + } else if (skill.toLowerCase().includes("ranged") || skill.toLowerCase().includes("gunnery")) { var ray = new Ray(tokens[0].center, Array.from(game.user.targets)[i].center); var animation_config = { position: tokens[0].center,