Make form change items non-stealable and fix Recover AI

This commit is contained in:
Flashfyre committed 2024-03-27 13:13:37 -04:00
1 parent b94215e3f6
commit 75c9c9cc2c
2 files changed
+6 -1

No files matched your search

+2 -1
View File
@@ -624,7 +624,8 @@ export class HealAttr extends MoveEffectAttr {
}
getTargetBenefitScore(user: Pokemon, target: Pokemon, move: Move): integer {
return Math.round((1 - (this.selfTarget ? user : target).getHpRatio()) * 20);
let score = ((1 - (this.selfTarget ? user : target).getHpRatio()) * 20) - this.healRatio * 10;
return Math.round(score / (1 - this.healRatio / 2));
}
}