mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-23 16:52:24 +02:00
Revival Blessing condition and tests
This commit is contained in:
parent
7384cc47b9
commit
f1b5f4ba89
@ -6038,10 +6038,16 @@ export class RevivalBlessingAttr extends MoveEffectAttr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} else {
|
|
||||||
globalScene.queueMessage(i18next.t("battle:attackFailed"));
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
getCondition(): MoveConditionFunc {
|
||||||
|
return (user, target, move) =>
|
||||||
|
(user instanceof PlayerPokemon && globalScene.getPlayerParty().findIndex((p) => p.isFainted()) > -1) ||
|
||||||
|
(user instanceof EnemyPokemon &&
|
||||||
|
user.hasTrainer() &&
|
||||||
|
globalScene.getEnemyParty().findIndex((p) => p.isFainted()) > -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): number {
|
getUserBenefitScore(user: Pokemon, target: Pokemon, move: Move): number {
|
||||||
|
Loading…
Reference in New Issue
Block a user