소스 검색

Fixed NPC_SELFDESTRUCTION not giving items and exp (#8860)

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Daegaladh 5 달 전
부모
커밋
5d279b7e48
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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