From b0ffd8ea36edbe20a530923261fabdaad78f7b0e Mon Sep 17 00:00:00 2001 From: Mashy Date: Wed, 17 Apr 2019 13:26:32 +1000 Subject: [PATCH] Skip for immunity --- client/src/utils.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/utils.jsx b/client/src/utils.jsx index b6bb2928..ed98d007 100644 --- a/client/src/utils.jsx +++ b/client/src/utils.jsx @@ -203,9 +203,13 @@ function getCombatSequence(event) { if (!event) return false; // Skip combat animations depending on event type, expandable in future const dotTicks = ['DecayTick', 'CorruptionTick', 'TriageTick', 'SiphonTick', 'StrangleTick']; + if (dotTicks.includes(event[1].skill)) return ['END_SKILL', 'POST_SKILL']; + + if (['Immunity'].includes(event[0])) return ['START_SKILL', 'POST_SKILL']; + if (['Ko'].includes(event[0]) || (event[1].skill === 'Throw' && event[1].effect === 'Vulnerable')) return ['POST_SKILL']; - if (dotTicks.includes(event[1].skill)) return ['END_SKILL', 'POST_SKILL']; + return ['START_SKILL', 'END_SKILL', 'POST_SKILL']; }