Selaa lähdekoodia

Fixed NPC_SELFDESTRUCTION not giving items and exp (#8860)

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
Daegaladh 5 kuukautta sitten
vanhempi
commit
5d279b7e48
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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