mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-13 03:42:18 +02:00
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:
parent
f1d869beea
commit
66b5cd7283
@ -1394,7 +1394,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
if (isPhysical && source.status && source.status.effect === StatusEffect.BURN) {
|
if (isPhysical && source.status && source.status.effect === StatusEffect.BURN) {
|
||||||
const burnDamageReductionCancelled = new Utils.BooleanHolder(false);
|
const burnDamageReductionCancelled = new Utils.BooleanHolder(false);
|
||||||
applyAbAttrs(BypassBurnDamageReductionAbAttr, source, burnDamageReductionCancelled);
|
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);
|
damage.value = Math.floor(damage.value / 2);
|
||||||
}
|
}
|
||||||
move.getAttrs(HitsTagAttr).map(hta => hta as HitsTagAttr).filter(hta => hta.doubleDamage).forEach(hta => {
|
move.getAttrs(HitsTagAttr).map(hta => hta as HitsTagAttr).filter(hta => hta.doubleDamage).forEach(hta => {
|
||||||
|
Loading…
Reference in New Issue
Block a user