mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-13 05:15:17 +00:00
fix weird luck when catching a fused mon
This commit is contained in:
parent
4a9fe763a5
commit
3855b92237
@ -2462,7 +2462,7 @@ export class PostTurnStatusHealAbAttr extends PostTurnAbAttr {
|
||||
* @returns Returns true if healed from status, false if not
|
||||
*/
|
||||
applyPostTurn(pokemon: Pokemon, passive: boolean, args: any[]): boolean | Promise<boolean> {
|
||||
if (this.effects.includes(pokemon.status.effect)) {
|
||||
if (this.effects.includes(pokemon.status?.effect)) {
|
||||
if (pokemon.getMaxHp() !== pokemon.hp) {
|
||||
const scene = pokemon.scene;
|
||||
const abilityName = (!passive ? pokemon.getAbility() : pokemon.getPassiveAbility()).name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user