fix: don't clear last damage list

This commit is contained in:
cha0s 2019-04-20 19:45:50 -05:00
parent f1c22c8406
commit a65f7e27da

View File

@ -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;