Explorar el Código

Fixed NPC_SELFDESTRUCTION not giving items and exp (#8860)

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Daegaladh hace 5 meses
padre
commit
5d279b7e48
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/map/skill.cpp

+ 2 - 1
src/map/skill.cpp

@@ -8817,7 +8817,8 @@ int32 skill_castend_nodamage_id (struct block_list *src, struct block_list *bl,
 			map_freeblock_unlock();
 			return 1;
 		}
-		status_kill(src);
+		// Won't display the damage, but drop items and give exp
+		status_zap(src, sstatus->hp, 0, 0);
 		break;
 	case AL_ANGELUS:
 #ifdef RENEWAL