Remove extraneous fail when using Psychic Noise twice in a row (#10254)

This commit is contained in:
Karthik 2024-04-21 21:55:19 -07:00 committed by GitHub
parent c1a768ee40
commit fbb8b57732
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8604,7 +8604,9 @@ export const Moves: {[moveid: string]: MoveData} = {
if ((effect?.id === 'zpower') || this.effectState.isZ) return damage;
return false;
},
onRestart(target, source) {
onRestart(target, source, effect) {
if (effect?.name === 'Psychic Noise') return;
this.add('-fail', target, 'move: Heal Block'); // Succeeds to supress downstream messages
if (!source.moveThisTurnResult) {
source.moveThisTurnResult = false;