Monsters should drop items in world (#373)

* Monsters should drop items in world

fix the typo introduced in f1934c3a47

* Determine whether in dungeon scene
This commit is contained in:
Aru 2022-04-30 19:18:09 +08:00 committed by GitHub
parent 7b991d7b4e
commit d6fa05915f

View File

@ -375,7 +375,7 @@ public class Scene {
this.broadcastPacket(new PacketLifeStateChangeNotify(attackerId, target, LifeState.LIFE_DEAD));
// Reward drop
if (target instanceof EntityMonster && this.getSceneType() != SceneType.SCENE_WORLD) {
if (target instanceof EntityMonster && this.getSceneType() != SceneType.SCENE_DUNGEON) {
getWorld().getServer().getDropManager().callDrop((EntityMonster) target);
}