mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-15 21:02:18 +02:00
Fix explosive moves used by a mon with Damp not getting suppressed
This commit is contained in:
parent
b7853f9ee6
commit
2a4a056426
@ -3050,9 +3050,7 @@ export class MoveEffectPhase extends PokemonPhase {
|
||||
|
||||
// Check if other Pokemon on the field have an ability that prevents this move
|
||||
const prevented = new Utils.BooleanHolder(false);
|
||||
for (const other of this.scene.getField(true).filter(p => user.id !== p.id)) {
|
||||
applyAbAttrs(FieldPreventMovesAbAttr, other, prevented, move, user as Pokemon);
|
||||
}
|
||||
this.scene.getField(true).forEach(p => applyAbAttrs(FieldPreventMovesAbAttr, p, prevented, move, user));
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user