Skip for immunity
This commit is contained in:
parent
a025900639
commit
b0ffd8ea36
@ -203,9 +203,13 @@ 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
|
||||||
const dotTicks = ['DecayTick', 'CorruptionTick', 'TriageTick', 'SiphonTick', 'StrangleTick'];
|
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])
|
if (['Ko'].includes(event[0])
|
||||||
|| (event[1].skill === 'Throw' && event[1].effect === 'Vulnerable')) return ['POST_SKILL'];
|
|| (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'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user