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);
|
return Math.min(damage, target.hp - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
getCondition(): MoveConditionFunc {
|
|
||||||
return (user, target, move) => target.hp > 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): integer {
|
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): integer {
|
||||||
return target.hp > 1 ? 0 : -20;
|
return target.hp > 1 ? 0 : -20;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue