#[repr(i32)]pub enum ConditionType {
Show 71 variants
SpellLearned = 0,
SpellOnCooldown = 1,
SpellOffCooldown = 2,
TargetDistanceLess = 3,
TargetDistanceGreater = 4,
HostileTarget = 5,
FriendlyTarget = 6,
HealthPctGreater = 7,
HealthPctLess = 8,
AuraOnPlayer = 9,
AuraOnTarget = 10,
TargetCountNearTargetGreater = 11,
TargetCountNearPlayerGreater = 12,
AuraCountNearPlayerGreater = 13,
AffordCost = 14,
AuraMissingTarget = 15,
AuraMissingPlayer = 16,
AuraDurationPlayer = 17,
AuraDurationTarget = 18,
ManaGreater = 19,
ManaLess = 20,
RageGreater = 21,
RageLess = 22,
FocusGreater = 23,
FocusLess = 24,
EnergyGreater = 25,
EnergyLess = 26,
ComboPointsGreater = 27,
ComboPointsLess = 28,
RunesGreater = 29,
RunesLess = 30,
RunicPowerGreater = 31,
RunicPowerLess = 32,
SoulShardsGreater = 33,
SoulShardsLess = 34,
LunarPowerGreater = 35,
LunarPowerLess = 36,
HolyPowerGreater = 37,
HolyPowerLess = 38,
MaelstromGreater = 39,
MaelstromLess = 40,
ChiGreater = 41,
ChiLess = 42,
InsanityGreater = 43,
InsanityLess = 44,
EssenceGreater = 45,
EssenceLess = 46,
ArcaneChargesGreater = 47,
ArcaneChargesLess = 48,
TargetCountNearTargetLess = 49,
TargetCountNearPlayerLess = 50,
AuraCountNearPlayerLess = 51,
TargetAuraApplicationGreater = 52,
TargetAuraApplicationLess = 53,
PlayerAuraApplicationGreater = 54,
PlayerAuraApplicationLess = 55,
SpellInRange = 56,
HasPet = 57,
HasNoPet = 58,
FuryGreater = 59,
FuryLess = 60,
PainGreater = 61,
PainLess = 62,
SpellChargesGreater = 63,
SpellChargesLess = 64,
CooldownRemainingGreater = 65,
CooldownRemainingLess = 66,
CooldownAllowCastingSuccess = 67,
PlayerHealthPctGreater = 68,
PlayerHealthPctLess = 69,
AutomationOnly = 70,
}Expand description
Rule predicate IDs for Blizzard’s assisted combat rotations.
Variants§
SpellLearned = 0
SpellOnCooldown = 1
SpellOffCooldown = 2
TargetDistanceLess = 3
TargetDistanceGreater = 4
HostileTarget = 5
FriendlyTarget = 6
HealthPctGreater = 7
HealthPctLess = 8
AuraOnPlayer = 9
AuraOnTarget = 10
TargetCountNearTargetGreater = 11
TargetCountNearPlayerGreater = 12
AuraCountNearPlayerGreater = 13
AffordCost = 14
AuraMissingTarget = 15
AuraMissingPlayer = 16
AuraDurationPlayer = 17
AuraDurationTarget = 18
ManaGreater = 19
ManaLess = 20
RageGreater = 21
RageLess = 22
FocusGreater = 23
FocusLess = 24
EnergyGreater = 25
EnergyLess = 26
ComboPointsGreater = 27
ComboPointsLess = 28
RunesGreater = 29
RunesLess = 30
RunicPowerGreater = 31
RunicPowerLess = 32
SoulShardsGreater = 33
SoulShardsLess = 34
LunarPowerGreater = 35
LunarPowerLess = 36
HolyPowerGreater = 37
HolyPowerLess = 38
MaelstromGreater = 39
MaelstromLess = 40
ChiGreater = 41
ChiLess = 42
InsanityGreater = 43
InsanityLess = 44
EssenceGreater = 45
EssenceLess = 46
ArcaneChargesGreater = 47
ArcaneChargesLess = 48
TargetCountNearTargetLess = 49
TargetCountNearPlayerLess = 50
AuraCountNearPlayerLess = 51
TargetAuraApplicationGreater = 52
TargetAuraApplicationLess = 53
PlayerAuraApplicationGreater = 54
PlayerAuraApplicationLess = 55
SpellInRange = 56
HasPet = 57
HasNoPet = 58
FuryGreater = 59
FuryLess = 60
PainGreater = 61
PainLess = 62
SpellChargesGreater = 63
SpellChargesLess = 64
CooldownRemainingGreater = 65
CooldownRemainingLess = 66
CooldownAllowCastingSuccess = 67
PlayerHealthPctGreater = 68
PlayerHealthPctLess = 69
AutomationOnly = 70
Implementations§
Source§impl ConditionType
impl ConditionType
pub fn from_raw(value: i32) -> Option<Self>
pub fn name(self) -> &'static str
Sourcepub fn uses_milliseconds(self) -> bool
pub fn uses_milliseconds(self) -> bool
True when value_2 encodes milliseconds.
Sourcepub fn uses_tenths(self) -> bool
pub fn uses_tenths(self) -> bool
True when value_1 encodes a tenths-precision value.
Sourcepub fn uses_hundredths(self) -> bool
pub fn uses_hundredths(self) -> bool
True when value_1 encodes a hundredths-precision value.
Trait Implementations§
Source§impl Clone for ConditionType
impl Clone for ConditionType
Source§fn clone(&self) -> ConditionType
fn clone(&self) -> ConditionType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConditionType
impl Debug for ConditionType
Source§impl<'_derivative_strum> From<&'_derivative_strum ConditionType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum ConditionType> for &'static str
Source§fn from(x: &'_derivative_strum ConditionType) -> &'static str
fn from(x: &'_derivative_strum ConditionType) -> &'static str
Converts to this type from the input type.
Source§impl From<ConditionType> for &'static str
impl From<ConditionType> for &'static str
Source§fn from(x: ConditionType) -> &'static str
fn from(x: ConditionType) -> &'static str
Converts to this type from the input type.
Source§impl PartialEq for ConditionType
impl PartialEq for ConditionType
impl Copy for ConditionType
impl Eq for ConditionType
impl StructuralPartialEq for ConditionType
Auto Trait Implementations§
impl Freeze for ConditionType
impl RefUnwindSafe for ConditionType
impl Send for ConditionType
impl Sync for ConditionType
impl Unpin for ConditionType
impl UnsafeUnpin for ConditionType
impl UnwindSafe for ConditionType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more