#[non_exhaustive]pub enum SpellEffectData {
Show 13 variants
Conditional {
predicate: fn(&HookCtx<'_>) -> bool,
effects: SpellEffectRange,
},
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: RuntimeDamageDef,
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: SpellEffectRange,
},
}Expand description
Ordered follow-up operation executed by a spell after its primary payload.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Conditional
ApplyAura
Fields
§
aura_local: LocalAuraIdxAddAuraStack
Fields
§
aura_local: LocalAuraIdxRemoveAura
Fields
§
aura_local: LocalAuraIdxInterruptCast
Dispel
Damage
Fields
§
effect: DamageEffectRef§
damage: RuntimeDamageDef§
attribute_flags: DamageFlags§
equipped_item_requirement: Option<EquippedItemRequirement>Heal
Fields
§
effect: Option<DamageEffectRef>Energize
EnergizePercent
ExtendAura
MutateCooldown
Delayed
Trait Implementations§
Source§impl Clone for SpellEffectData
impl Clone for SpellEffectData
Source§fn clone(&self) -> SpellEffectData
fn clone(&self) -> SpellEffectData
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 SpellEffectData
impl Debug for SpellEffectData
impl Copy for SpellEffectData
Auto Trait Implementations§
impl Freeze for SpellEffectData
impl RefUnwindSafe for SpellEffectData
impl Send for SpellEffectData
impl Sync for SpellEffectData
impl Unpin for SpellEffectData
impl UnsafeUnpin for SpellEffectData
impl UnwindSafe for SpellEffectData
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