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 86f72a5f7a
commit dd38814209
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -375,7 +375,7 @@ public class Scene {
this.broadcastPacket(new PacketLifeStateChangeNotify(attackerId, target, LifeState.LIFE_DEAD)); this.broadcastPacket(new PacketLifeStateChangeNotify(attackerId, target, LifeState.LIFE_DEAD));
// Reward drop // 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); getWorld().getServer().getDropManager().callDrop((EntityMonster) target);
} }