mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-03 23:12:20 +02:00
ran boime
This commit is contained in:
parent
7b7807c3eb
commit
f5c0f213d2
@ -5355,14 +5355,16 @@ export class PostFaintContactDamageAbAttr extends PostFaintAbAttr {
|
|||||||
|
|
||||||
const cancelled = new BooleanHolder(false);
|
const cancelled = new BooleanHolder(false);
|
||||||
// TODO: This should be in speed order
|
// TODO: This should be in speed order
|
||||||
globalScene.getField(true).forEach(p => applyAbAttrs("FieldPreventExplosiveMovesAbAttr", {pokemon: p, cancelled, simulated}));
|
globalScene
|
||||||
|
.getField(true)
|
||||||
|
.forEach(p => applyAbAttrs("FieldPreventExplosiveMovesAbAttr", { pokemon: p, cancelled, simulated }));
|
||||||
|
|
||||||
if (cancelled.value) {
|
if (cancelled.value) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Does aftermath display text if the attacker has Magic Guard?
|
// TODO: Does aftermath display text if the attacker has Magic Guard?
|
||||||
applyAbAttrs("BlockNonDirectDamageAbAttr", {pokemon: attacker, cancelled});
|
applyAbAttrs("BlockNonDirectDamageAbAttr", { pokemon: attacker, cancelled });
|
||||||
return !cancelled.value;
|
return !cancelled.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5400,7 +5402,7 @@ export class PostFaintHPDamageAbAttr extends PostFaintAbAttr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const cancelled = new BooleanHolder(false);
|
const cancelled = new BooleanHolder(false);
|
||||||
applyAbAttrs("BlockNonDirectDamageAbAttr", {pokemon: attacker, cancelled});
|
applyAbAttrs("BlockNonDirectDamageAbAttr", { pokemon: attacker, cancelled });
|
||||||
if (cancelled.value) {
|
if (cancelled.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user