Make form change items non-stealable and fix Recover AI
This commit is contained in:
1 parent
b94215e3f6
commit
75c9c9cc2c
2 files changed
+6
-1
No files matched your search
+2
-1
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user