update effects during combat anim loop
This commit is contained in:
@@ -228,9 +228,10 @@ function eventClasses(resolution, construct) {
|
||||
}
|
||||
|
||||
if (type === 'Effect') {
|
||||
const { skill, effect, duration } = event;
|
||||
const { skill, effect, duration, construct_effects: constructEffects } = event;
|
||||
if (source && startSkill) return 'active-skill';
|
||||
if (target && endSkill) return 'active-skill';
|
||||
if (target && postSkill) construct.effects = constructEffects;
|
||||
}
|
||||
|
||||
if (type === 'Skill') {
|
||||
@@ -241,7 +242,10 @@ function eventClasses(resolution, construct) {
|
||||
}
|
||||
|
||||
if (type === 'Removal') {
|
||||
const { effect } = event;
|
||||
const { effect, construct_effects: constructEffects } = event;
|
||||
if (source && startSkill) return 'active-skill';
|
||||
if (target && endSkill) return 'active-skill';
|
||||
if (target && postSkill) construct.effects = constructEffects;
|
||||
}
|
||||
|
||||
if (type === 'Recharge') {
|
||||
|
||||
Reference in New Issue
Block a user