mirror of
https://git.muiegratis.online/suikoakari/Campofinale
synced 2025-12-22 14:34:37 +01:00
23 lines
653 B
C#
23 lines
653 B
C#
using Campofinale.Game.Char;
|
|
using Campofinale.Network;
|
|
using Campofinale.Protocol;
|
|
|
|
namespace Campofinale.Packets.Cs
|
|
{
|
|
public class HandleCsCharUnlockTalentNode
|
|
{
|
|
[Server.Handler(CsMsgId.CsCharUnlockTalentNode)]
|
|
public static void Handle(Player session, CsMsgId cmdId, Packet packet)
|
|
{
|
|
CsCharUnlockTalentNode req = packet.DecodeBody<CsCharUnlockTalentNode>();
|
|
|
|
Character character = session.chars.Find(c=>c.guid==req.CharObjId);
|
|
if (character != null)
|
|
{
|
|
character.UnlockNode(req.NodeId);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|