add missing corpses from 781. remove self implemented logic for corpse owner expire. Update every monster with new corpse for self owner expiring

This commit is contained in:
ErikasKontenis
2019-11-17 14:33:25 +02:00
parent 408706dc78
commit 7f7357a419
148 changed files with 769 additions and 153 deletions

View File

@@ -712,7 +712,6 @@ bool Creature::dropCorpse(Creature* lastHitCreature, Creature* mostDamageCreatur
if (corpse) {
g_game.internalAddItem(tile, corpse, INDEX_WHEREEVER, FLAG_NOLIMIT);
g_game.startDecay(corpse);
g_scheduler.addEvent(createSchedulerTask(10000, std::bind(&Game::RemoveCorpseOwner, &g_game, corpse)));
}
//scripting event - onDeath