mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 01:15:52 +01:00
Refactor avatar skilldepot and constellation/talent changing
Ensures Traveler retains talent levels and constellations on inactive elements when switching elements. Relevant for any other skillDepot-changing activities like Windtrace too, though keeping those in the db might not be as useful. Refactor avatar talent upgrade and access Refactor skillExtraCharges
This commit is contained in:
@@ -338,11 +338,7 @@ public class TeamManager extends BasePlayerDataManager {
|
||||
this.getPlayer().getWorld().broadcastPacket(new PacketSceneTeamUpdateNotify(this.getPlayer()));
|
||||
|
||||
// Skill charges packet - Yes, this is official server behavior as of 2.6.0
|
||||
for (EntityAvatar entity : this.getActiveTeam()) {
|
||||
if (entity.getAvatar().getSkillExtraChargeMap().size() > 0) {
|
||||
this.getPlayer().sendPacket(new PacketAvatarSkillInfoNotify(entity.getAvatar()));
|
||||
}
|
||||
}
|
||||
this.getActiveTeam().stream().map(EntityAvatar::getAvatar).forEach(Avatar::sendSkillExtraChargeMap);
|
||||
|
||||
// Run callback
|
||||
if (responsePacket != null) {
|
||||
|
||||
Reference in New Issue
Block a user