mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 21:32:18 +02:00
Clean up comments
This commit is contained in:
parent
64aa989aaa
commit
9827ff5cb5
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user