Fix destructible objects creating an error message when destroyed

This commit is contained in:
Melledy
2023-09-25 18:27:51 -07:00
parent 48b267cecd
commit 284a4e6572

View File

@@ -6,6 +6,7 @@ import java.util.List;
import emu.lunarcore.game.avatar.GameAvatar;
import emu.lunarcore.game.player.Player;
import emu.lunarcore.game.scene.EntityMonster;
import emu.lunarcore.game.scene.EntityProp;
import emu.lunarcore.game.scene.GameEntity;
import emu.lunarcore.proto.AvatarBattleInfoOuterClass.AvatarBattleInfo;
import emu.lunarcore.proto.AvatarPropertyOuterClass.AvatarProperty;
@@ -39,6 +40,9 @@ public class BattleService extends BaseGameService {
if (entity instanceof EntityMonster) {
player.sendPacket(new PacketSceneCastSkillScRsp(player, (EntityMonster) entity));
return;
} else if (entity instanceof EntityProp) {
player.sendPacket(new PacketSceneCastSkillScRsp(0));
return;
}
}