-
Notifications
You must be signed in to change notification settings - Fork 0
/
Auras.cs
executable file
·74 lines (63 loc) · 1.9 KB
/
Auras.cs
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
using Styx;
using Styx.Logic.Combat;
namespace RogueAssassin
{
/// <summary>
/// Contains all of the Auras used by rogues.
/// These auras are loaded on the first call from the BT.
/// </summary>
internal class Auras
{
#region Fields
private WoWAura _envenom;
private WoWAura _rupture;
private WoWAura _sliceAndDice;
#endregion
#region Properties
/// <summary>
/// Envenom buff on the player.
/// Null if no buff was found.
/// </summary>
public WoWAura Envenom
{
get { return _envenom ?? (_envenom = StyxWoW.Me.GetAllAuras().Find(a => a.SpellId == Spells.ENVENOM)); }
}
/// <summary>
/// Rupture debuff on the target.
/// Null if Rupture is down.
/// </summary>
public WoWAura Rupture
{
get
{
if (!StyxWoW.Me.GotTarget) return null;
return _rupture
?? (_rupture = StyxWoW.Me.CurrentTarget.GetAllAuras().Find(a => a.SpellId == Spells.RUPTURE));
}
}
/// <summary>
/// Slice and Dice buff on the player.
/// Null if SnD is down.
/// </summary>
public WoWAura SliceAndDice
{
get
{
return _sliceAndDice
?? (_sliceAndDice = StyxWoW.Me.GetAllAuras().Find(a => a.SpellId == Spells.SLICE_AND_DICE));
}
}
#endregion
#region Methods
/// <summary>
/// Resets the properties fields used by the properties so that they can be reset.
/// </summary>
public void Reset()
{
_envenom = null;
_rupture = null;
_sliceAndDice = null;
}
#endregion
}
}