pub(crate) enum BuilderSpellEffect {
Show 13 variants
Conditional {
predicate: fn(&HookCtx<'_>) -> bool,
effects: Vec<BuilderSpellEffect>,
},
ApplyAura {
aura_local: LocalAuraIdx,
},
AddAuraStack {
aura_local: LocalAuraIdx,
},
RemoveAura {
aura_local: LocalAuraIdx,
},
InterruptCast {
lockout_ms: u32,
},
Dispel {
dispel_type: i32,
steal: bool,
},
Damage {
effect: DamageEffectRef,
damage: BuilderDamageDef,
base_points: f64,
may_crit: bool,
attribute_flags: DamageFlags,
requires_main_hand: bool,
requires_off_hand: bool,
equipped_item_requirement: Option<EquippedItemRequirement>,
},
Heal {
effect: Option<DamageEffectRef>,
base: f64,
ap_coef: f64,
sp_coef: f64,
percent_of_max: f64,
may_crit: bool,
},
Energize {
effect: Option<DamageEffectRef>,
pool: ResourcePool,
amount: f64,
},
EnergizePercent {
resource_type: ResourceType,
percent: f64,
effect_index: u8,
},
ExtendAura {
aura_local: LocalAuraIdx,
amount_ms: u32,
},
MutateCooldown {
spell_local: LocalSpellIdx,
operation: CooldownMutation,
},
Delayed {
delay_ms: u32,
profile_spell_id: u32,
effects: Vec<BuilderSpellEffect>,
},
}Variants§
Conditional
ApplyAura
Fields
§
aura_local: LocalAuraIdxAddAuraStack
Fields
§
aura_local: LocalAuraIdxRemoveAura
Fields
§
aura_local: LocalAuraIdxInterruptCast
Dispel
Damage
Fields
§
effect: DamageEffectRef§
damage: BuilderDamageDef§
attribute_flags: DamageFlags§
equipped_item_requirement: Option<EquippedItemRequirement>Heal
Fields
§
effect: Option<DamageEffectRef>Energize
EnergizePercent
ExtendAura
MutateCooldown
Delayed
Trait Implementations§
Source§impl Clone for BuilderSpellEffect
impl Clone for BuilderSpellEffect
Source§fn clone(&self) -> BuilderSpellEffect
fn clone(&self) -> BuilderSpellEffect
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 moreAuto Trait Implementations§
impl Freeze for BuilderSpellEffect
impl RefUnwindSafe for BuilderSpellEffect
impl Send for BuilderSpellEffect
impl Sync for BuilderSpellEffect
impl Unpin for BuilderSpellEffect
impl UnsafeUnpin for BuilderSpellEffect
impl UnwindSafe for BuilderSpellEffect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more