From 38ba9771ec1ac970e755215d461dc76b1641c295 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Thu, 13 Apr 2023 17:52:26 -0400 Subject: [PATCH] Remove default Anemo skill depot from a Traveler when questing is enabled --- .../server/packet/recv/HandlerSetPlayerBornDataReq.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java index 52349ad69..6b5cfcf28 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerSetPlayerBornDataReq.java @@ -1,6 +1,7 @@ package emu.grasscutter.server.packet.recv; import static emu.grasscutter.config.Configuration.GAME_INFO; +import static emu.grasscutter.config.Configuration.GAME_OPTIONS; import emu.grasscutter.GameConstants; import emu.grasscutter.Grasscutter; @@ -50,8 +51,13 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler { // Create avatar if (player.getAvatars().getAvatarCount() == 0) { Avatar mainCharacter = new Avatar(avatarId); - mainCharacter.setSkillDepotData( + + // Check if the default Anemo skill should be given. + if (!GAME_OPTIONS.questing) { + mainCharacter.setSkillDepotData( GameData.getAvatarSkillDepotDataMap().get(startingSkillDepot)); + } + // Manually handle adding to team player.addAvatar(mainCharacter, false); player.setMainCharacterId(avatarId);