Monsters should not drop items inside dungeons

This commit is contained in:
Melledy
2022-04-30 01:18:50 -07:00
Unverified
parent 7e377dff59
commit 286ab545e9
2 changed files with 9 additions and 2 deletions
@@ -375,8 +375,8 @@ public class Scene {
this.broadcastPacket(new PacketLifeStateChangeNotify(attackerId, target, LifeState.LIFE_DEAD));
// Reward drop
if (target instanceof EntityMonster) {
Grasscutter.getGameServer().getDropManager().callDrop((EntityMonster) target);
if (target instanceof EntityMonster && this.getSceneType() != SceneType.SCENE_WORLD) {
getWorld().getServer().getDropManager().callDrop((EntityMonster) target);
}
this.removeEntity(target);