mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-13 05:44:36 +01:00
Fix destructible objects creating an error message when destroyed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user