mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 13:52:18 +02:00
Fix Aftermath not working
This commit is contained in:
parent
33f8365192
commit
62432663bf
@ -2527,7 +2527,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);
|
||||
|
Loading…
Reference in New Issue
Block a user