blob: 3933805909d6f0e3a14b5dae7909ca7dde141d16 (
plain)
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
35
36
37
38
39
40
41
42
43
44
45
|
using System;
using XUtliPoolLib;
namespace XMainClient
{
internal class XBuffKill : BuffEffect
{
public override XBuffEffectPrioriy Priority
{
get
{
return XBuffEffectPrioriy.BEP_Kill;
}
}
public static bool TryCreate(BuffTable.RowData rowData, XBuff buff)
{
bool flag = rowData.Kill == 0;
bool result;
if (flag)
{
result = false;
}
else
{
buff.AddEffect(new XBuffKill());
result = true;
}
return result;
}
public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper)
{
}
public override void OnRemove(XEntity entity, bool IsReplaced)
{
bool flag = !IsReplaced && !entity.IsDead && !entity.Buffs.bLeavingScene && !entity.Buffs.bDestroying;
if (flag)
{
XSingleton<XDeath>.singleton.DeathDetect(entity, null, true);
}
}
}
}
|