Issue #523 - Well the condition was wrong. Of course it should go into the if condition IF the move is NOT facade (i missunderstood)

This commit is contained in:
Jannik Tappert 2024-05-10 18:50:07 +02:00
parent f1d869beea
commit 66b5cd7283

View File

@ -1394,7 +1394,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
if (isPhysical && source.status && source.status.effect === StatusEffect.BURN) {
const burnDamageReductionCancelled = new Utils.BooleanHolder(false);
applyAbAttrs(BypassBurnDamageReductionAbAttr, source, burnDamageReductionCancelled);
if (!burnDamageReductionCancelled.value && !(battlerMove.getMove().id !== Moves.FACADE))
if (!burnDamageReductionCancelled.value && battlerMove.getMove().id !== Moves.FACADE)
damage.value = Math.floor(damage.value / 2);
}
move.getAttrs(HitsTagAttr).map(hta => hta as HitsTagAttr).filter(hta => hta.doubleDamage).forEach(hta => {