Allow False Swipe and Hold Back to hit even at 1 hp

This commit is contained in:
EmberCM 2024-08-29 12:15:59 -05:00
parent 0d7c335cd9
commit eb559fd20d

View File

@ -1261,10 +1261,6 @@ export class SurviveDamageAttr extends ModifiedDamageAttr {
return Math.min(damage, target.hp - 1);
}
getCondition(): MoveConditionFunc {
return (user, target, move) => target.hp > 1;
}
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): integer {
return target.hp > 1 ? 0 : -20;
}