Fix spacing

This commit is contained in:
NightKev 2024-09-02 18:47:28 -07:00 committed by GitHub
parent b2ec961294
commit f8370c4009
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1423,7 +1423,7 @@ export class HalfSacrificialAttr extends MoveEffectAttr {
// Check to see if the Pokemon has an ability that blocks non-direct damage // Check to see if the Pokemon has an ability that blocks non-direct damage
applyAbAttrs(BlockNonDirectDamageAbAttr, user, cancelled); applyAbAttrs(BlockNonDirectDamageAbAttr, user, cancelled);
if (!cancelled.value) { if (!cancelled.value) {
const damage = Utils.toDmgValue(user.getMaxHp()/2); const damage = Utils.toDmgValue(user.getMaxHp() / 2);
user.damageAndUpdate(damage, HitResult.OTHER, false, true, true); user.damageAndUpdate(damage, HitResult.OTHER, false, true, true);
const attackResult = { move: move.id, result: HitResult.OTHER as DamageResult, damage: damage, critical: false, sourceId: user.id, sourceBattlerIndex: user.getBattlerIndex() }; const attackResult = { move: move.id, result: HitResult.OTHER as DamageResult, damage: damage, critical: false, sourceId: user.id, sourceBattlerIndex: user.getBattlerIndex() };
user.turnData.attacksReceived.unshift(attackResult); user.turnData.attacksReceived.unshift(attackResult);