fix: don't clear last damage list
This commit is contained in:
parent
f1c22c8406
commit
a65f7e27da
|
@ -286,9 +286,6 @@ export class Vulnerable extends Trait {
|
||||||
const {context, actions} = this.tookDamageActions[i];
|
const {context, actions} = this.tookDamageActions[i];
|
||||||
actions.tick(context, elapsed);
|
actions.tick(context, elapsed);
|
||||||
}
|
}
|
||||||
if (this.state.get('damageList').size > 0) {
|
|
||||||
this.state = this.state.set('damageList', I.Map());
|
|
||||||
}
|
|
||||||
if (Object.keys(this.damageList).length > 0) {
|
if (Object.keys(this.damageList).length > 0) {
|
||||||
this.state = this.state.set('damageList', I.Map(this.damageList));
|
this.state = this.state.set('damageList', I.Map(this.damageList));
|
||||||
this.isDirty = true;
|
this.isDirty = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user