Fix the bug that can't kill command-generated monsters

Command-generated monsters do not have spawnentry so we have to get data from getMonsterData
This commit is contained in:
ShiroSaki
2022-05-24 00:11:29 +08:00
committed by Melledy
parent 27ec8543dd
commit fef5c06a29
3 changed files with 20 additions and 9 deletions

View File

@@ -216,7 +216,7 @@ public abstract class GameEntity {
// Check if dead
if (isDead) {
getScene().killEntity(this, 0);
getScene().killEntity(this, killerId);
}
}
}