mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
Allow False Swipe and Hold Back to hit even at 1 hp
This commit is contained in:
parent
0d7c335cd9
commit
eb559fd20d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user