cutechicken commited on
Commit
4032e5a
·
verified ·
1 Parent(s): 192677c

Update game.js

Browse files
Files changed (1) hide show
  1. game.js +6 -1
game.js CHANGED
@@ -1032,9 +1032,14 @@ class Game {
1032
  }
1033
 
1034
  updateWarnings() {
 
1035
  const existingWarnings = document.querySelectorAll('.warning-message');
1036
  existingWarnings.forEach(w => w.remove());
1037
 
 
 
 
 
1038
  if (this.fighter.warningBlinkState) {
1039
  const warningContainer = document.createElement('div');
1040
  warningContainer.className = 'warning-message';
@@ -1077,7 +1082,7 @@ class Game {
1077
  }
1078
  }
1079
 
1080
- // 스톨 상태일 하단에 "Press W to Escape" 경고 표시
1081
  if (this.fighter.stallWarning) {
1082
  const stallEscapeWarning = document.createElement('div');
1083
  stallEscapeWarning.className = 'stall-escape-warning';
 
1032
  }
1033
 
1034
  updateWarnings() {
1035
+ // 기존 경고 메시지 제거
1036
  const existingWarnings = document.querySelectorAll('.warning-message');
1037
  existingWarnings.forEach(w => w.remove());
1038
 
1039
+ // 스톨 탈출 경고 제거
1040
+ const existingStallWarnings = document.querySelectorAll('.stall-escape-warning');
1041
+ existingStallWarnings.forEach(w => w.remove());
1042
+
1043
  if (this.fighter.warningBlinkState) {
1044
  const warningContainer = document.createElement('div');
1045
  warningContainer.className = 'warning-message';
 
1082
  }
1083
  }
1084
 
1085
+ // 스톨 상태일 때만 "Press W to Escape" 경고 표시
1086
  if (this.fighter.stallWarning) {
1087
  const stallEscapeWarning = document.createElement('div');
1088
  stallEscapeWarning.className = 'stall-escape-warning';