From f9503ff9a7e8d60a9618b510141247fb5249a9ae Mon Sep 17 00:00:00 2001 From: Cae Rulius Date: Mon, 13 May 2024 14:57:01 -0500 Subject: [PATCH] review fixes and bad merge v2 --- src/data/move.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/data/move.ts b/src/data/move.ts index 6450fbc14b4..b1369c6bf19 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1353,6 +1353,25 @@ export class BypassSleepAttr extends MoveAttr { } } +/** + * Attribute used for moves that bypass the burn damage reduction of physical moves, currently only facade + * Called during damage calculation + * @param user N/A + * @param target N/A + * @param move Move with this attribute + * @param args Utils.BooleanHolder for burnDamageReductionCancelled + * @returns true if the function succeeds + */ +export class BypassBurnDamageReductionAttr extends MoveAttr { + + /** Prevents the move's damage from being reduced by burn */ + apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): boolean { + (args[0] as Utils.BooleanHolder).value = true; + + return true; + } +} + export class WeatherChangeAttr extends MoveEffectAttr { private weatherType: WeatherType;