blob: 6e71f72af7f6c2e35bbdc7d1fee7a1002cc1f20e (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
using System;
namespace XMainClient
{
internal class XBuffTriggerByBeHit : XBuffTrigger
{
public override XBuffEffectPrioriy Priority
{
get
{
return XBuffEffectPrioriy.BEP_TriggerByBeHit;
}
}
private int m_Type;
private int m_Param0;
private XEntity m_Entity;
private HurtInfo m_RawInput;
private ProjectDamageResult m_Result;
public XBuffTriggerByBeHit(XBuff buff) : base(buff)
{
this.m_Type = base._GetTriggerParamInt(buff.BuffInfo, 0);
this.m_Param0 = base._GetTriggerParamInt(buff.BuffInfo, 1);
}
public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper)
{
base.OnAdd(entity, pEffectHelper);
this.m_Entity = entity;
}
public override void OnBuffEffect(HurtInfo rawInput, ProjectDamageResult result)
{
bool flag = rawInput.SkillID == 0u;
if (!flag)
{
this.m_RawInput = rawInput;
this.m_Result = result;
base.Trigger();
}
}
public override bool CheckTriggerCondition()
{
int type = this.m_Type;
if (type != 0)
{
if (type == 1)
{
bool flag = this.m_Result.Result != ProjectResultType.PJRES_IMMORTAL;
if (flag)
{
return false;
}
bool flag2 = this.m_Param0 != 0;
if (flag2)
{
XBuff buffByID = this.m_Entity.Buffs.GetBuffByID(this.m_Param0);
bool flag3 = buffByID == null;
if (flag3)
{
return false;
}
}
}
}
return true;
}
}
}
|