cutechicken commited on
Commit
462f002
·
verified ·
1 Parent(s): e2ece81

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -245,7 +245,7 @@
245
  const now = Date.now();
246
 
247
  // 기관총을 특정 간격마다 섞어서 발사
248
- if (this.isBoss && now % 3 === 0) { // 조건: 3초마다 기관총 공격
249
  const sound = new Audio('firemg.ogg'); // 기관총 소리
250
  sound.play();
251
 
 
245
  const now = Date.now();
246
 
247
  // 기관총을 특정 간격마다 섞어서 발사
248
+ if (this.isBoss && Math.floor(now / 1000) % 3 === 0) {
249
  const sound = new Audio('firemg.ogg'); // 기관총 소리
250
  sound.play();
251