Fix Aftermath not working (#1209)

This commit is contained in:
LaukkaE 2024-05-24 23:35:45 +03:00 committed by GitHub
parent a48ba9864d
commit 0309fde7e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2641,7 +2641,7 @@ export class PostFaintContactDamageAbAttr extends PostFaintAbAttr {
if (move.getMove().checkFlag(MoveFlags.MAKES_CONTACT, attacker, pokemon)) {
const cancelled = new Utils.BooleanHolder(false);
pokemon.scene.getField(true).map(p=>applyAbAttrs(FieldPreventExplosiveMovesAbAttr, p, cancelled));
if (cancelled) {
if (cancelled.value) {
return false;
}
attacker.damageAndUpdate(Math.ceil(attacker.getMaxHp() * (1 / this.damageRatio)), HitResult.OTHER);