Преглед изворни кода

Fixed hallucination ignoring reloadbattleconf

Fixed #1765
Lemongrass3110 пре 8 година
родитељ
комит
2bb92a114b
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 0
      src/map/clif.c
  2. 0 3
      src/map/status.c

+ 3 - 0
src/map/clif.c

@@ -5936,6 +5936,9 @@ void clif_status_change(struct block_list *bl, int type, int flag, int tick, int
 	if (type == SI_ACTIONDELAY && tick == 0)
 		return;
 
+	if (type == SI_HALLUCINATION && !battle_config.display_hallucination) // Disable Hallucination.
+		return;
+
 	nullpo_retv(bl);
 
 	sd = BL_CAST(BL_PC, bl);

+ 0 - 3
src/map/status.c

@@ -1249,9 +1249,6 @@ void initChangeTables(void)
 	StatusChangeFlagTable[SC_EDP] |= SCB_WATK;
 #endif
 
-	if( !battle_config.display_hallucination ) // Disable Hallucination.
-		StatusIconChangeTable[SC_HALLUCINATION] = SI_BLANK;
-
 	/* StatusDisplayType Table [Ind] */
 	StatusDisplayType[SC_ALL_RIDING]	  = true;
 	StatusDisplayType[SC_PUSH_CART]		  = true;