forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequestDispel.cs
More file actions
34 lines (29 loc) · 896 Bytes
/
Copy pathRequestDispel.cs
File metadata and controls
34 lines (29 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using L2dotNET.Models.Player;
namespace L2dotNET.Network.clientpackets
{
class RequestDispel : PacketBase
{
private readonly GameClient _client;
private readonly int _ownerId;
private readonly int _skillId;
private readonly int _skillLv;
public RequestDispel(IServiceProvider serviceProvider, Packet packet, GameClient client) : base(serviceProvider)
{
packet.MoveOffset(2);
_client = client;
_ownerId = packet.ReadInt();
_skillId = packet.ReadInt();
_skillLv = packet.ReadInt();
}
public override void RunImpl()
{
L2Player player = _client.CurrentPlayer;
if (_ownerId != player.ObjId)
{
player.SendActionFailed();
return;
}
}
}
}