Skip to content

Commit 46a8173

Browse files
committed
Fixing linter issue
1 parent 3682726 commit 46a8173

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/plugins/combat/combat.old.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ class Combat {
115115
soundIds.npc.human.maleDefence, 5);
116116

117117
defender.damage(actualHit);
118-
const defenderState: 'alive' | 'dead' = 'alive';
118+
/*const defenderState: 'alive' | 'dead' = 'alive';
119119
120-
// @ts-ignore
121120
if (defenderState === 'dead') {
122121
// @TODO death sounds
123122
this.processDeath(defender, attacker);
@@ -126,7 +125,7 @@ class Combat {
126125
activeWorld.playLocationSound(defender.position, defender instanceof Player ? soundIds.npc.human.noArmorHitPlayer :
127126
soundIds.npc.human.noArmorHit, 5);
128127
defender.playAnimation(defender.getBlockAnimation());
129-
}
128+
}*/
130129
}
131130

132131
public async processDeath(victim: Actor, assailant?: Actor): Promise<void> {

0 commit comments

Comments
 (0)