Przeglądaj źródła

Corrected damage type vs target with endure effect (#9099)

Atemo 2 miesięcy temu
rodzic
commit
f225cb3a1d
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      src/map/clif.cpp

+ 6 - 0
src/map/clif.cpp

@@ -5129,6 +5129,12 @@ static enum e_damage_type clif_calc_delay(block_list& bl, e_damage_type type, in
 	if (delay != 0)
 		return type;
 
+	// General change of type based on div against target with endure effect
+	if (div > 1 && type == DMG_SINGLE)
+		type = DMG_MULTI_HIT;
+	else if (div < 2 && type == DMG_MULTI_HIT)
+		type = DMG_SINGLE;
+
 	switch( type ) {
 		case DMG_ENDURE:
 		case DMG_MULTI_HIT_ENDURE: