mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 21:32: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
|
// 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);
|
||||||
for (const other of this.scene.getField(true).filter(p => user.id !== p.id)) {
|
this.scene.getField(true).forEach(p => applyAbAttrs(FieldPreventMovesAbAttr, p, prevented, move, user));
|
||||||
applyAbAttrs(FieldPreventMovesAbAttr, other, prevented, move, user as Pokemon);
|
|
||||||
}
|
|
||||||
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.
|
// 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user