This commit is contained in:
Hexugory 2023-04-03 00:42:27 -05:00
parent 51f886e11b
commit e0dabf97c8

View File

@ -115,7 +115,7 @@ export class Battle {
for (const status of unit.potencyEffects) {
status.duration--;
}
unit.potencyEffects.filter(Battle.buffIsActive);
unit.potencyEffects = unit.potencyEffects.filter(Battle.buffIsActive);
}
this.appendLog('');
}
@ -258,12 +258,12 @@ export class Battle {
target.statusEffects.stun = 0;
target.statusEffects.poison = 0;
target.statusEffects.taunt = 0;
target.potencyEffects.filter(Battle.isBuff);
target.potencyEffects = target.potencyEffects.filter(Battle.isBuff);
}
if (effect.dispel) {
this.appendLog(`(${target.team}) ${target.character.nameShort} was dispelled of buffs!`);
target.statusEffects.regeneration = 0;
target.potencyEffects.filter(Battle.isDebuff);
target.potencyEffects = target.potencyEffects.filter(Battle.isDebuff);
}
if (effect.poison) {
target.statusEffects.poison = Math.max(target.statusEffects.poison, effect.poison);