mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-03-21 09:15:25 +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
|
* @returns Returns true if healed from status, false if not
|
||||||
*/
|
*/
|
||||||
applyPostTurn(pokemon: Pokemon, passive: boolean, args: any[]): boolean | Promise<boolean> {
|
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) {
|
if (pokemon.getMaxHp() !== pokemon.hp) {
|
||||||
const scene = pokemon.scene;
|
const scene = pokemon.scene;
|
||||||
const abilityName = (!passive ? pokemon.getAbility() : pokemon.getPassiveAbility()).name;
|
const abilityName = (!passive ? pokemon.getAbility() : pokemon.getPassiveAbility()).name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user