Clean up comments

This commit is contained in:
Zach Day 2024-06-29 17:39:24 -04:00
parent 64aa989aaa
commit 9827ff5cb5

View File

@ -3048,11 +3048,9 @@ export class MoveEffectPhase extends PokemonPhase {
return this.end(); return this.end();
} }
// Check if other Pokemon on the field have an ability that prevents this move
const prevented = new Utils.BooleanHolder(false); const prevented = new Utils.BooleanHolder(false);
this.scene.getField(true).forEach(p => applyAbAttrs(FieldPreventMovesAbAttr, p, prevented, move, user)); this.scene.getField(true).forEach(p => applyAbAttrs(FieldPreventMovesAbAttr, p, prevented, move, user));
if (prevented.value) { if (prevented.value) {
// Just bail out of the move if it got prevented. No need to manually show message; the Attr handles that.
moveHistoryEntry.result = MoveResult.FAIL; moveHistoryEntry.result = MoveResult.FAIL;
return this.end(); return this.end();
} }