Skip source for all ticks, fix throw sequence

This commit is contained in:
Mashy 2019-04-17 09:03:06 +10:00
parent a45cbbcae8
commit cbe75ead32

View File

@ -193,8 +193,10 @@ function eventClasses(resolution, cryp) {
function getCombatSequence(event) { function getCombatSequence(event) {
if (!event) return false; if (!event) return false;
// Skip combat animations depending on event type, expandable in future // Skip combat animations depending on event type, expandable in future
if (['Ko'].includes(event[0])) return ['POST_SKILL']; const dotTicks = ['DecayTick', 'CorruptionTick', 'TriageTick', 'SiphonTick', 'StrangleTick'];
if (['DecayTick'].includes(event[1].skill)) return ['END_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']; return ['START_SKILL', 'END_SKILL', 'POST_SKILL'];
} }