소스 검색

SC_HALLUCINATION now shows damage even when blocked (#6920)

- When under the HALLUCINATION status change you will now also see damage when the damage was reduced to 0
- This includes damage being reduced to 0 by e.g. Pneuma or Safety Wall
- Documented under #6790 (but does not fix the original report which I can't reproduce)

Note: Modern clients handle the display of random damage themselves, so you will see higher damage numbers than what clif_hallucination_damage() returns. It still requires to return a number higher than 0 for it to display.
Playtester 3 년 전
부모
커밋
94c80a9108
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/map/clif.cpp

+ 1 - 1
src/map/clif.cpp

@@ -5129,7 +5129,7 @@ int clif_damage(struct block_list* src, struct block_list* dst, t_tick tick, int
 	sc = status_get_sc(dst);
 	sc = status_get_sc(dst);
 	if(sc && sc->count) {
 	if(sc && sc->count) {
 		if(sc->data[SC_HALLUCINATION]) {
 		if(sc->data[SC_HALLUCINATION]) {
-			if(damage) damage = clif_hallucination_damage();
+			damage = clif_hallucination_damage();
 			if(damage2) damage2 = clif_hallucination_damage();
 			if(damage2) damage2 = clif_hallucination_damage();
 		}
 		}
 	}
 	}