瀏覽代碼

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