struct SpellModifierContext<'a> {
state: &'a CombatState,
buf: &'a DenseBuffer,
query: SpellModifierQuery,
target: Option<EnemyIdx>,
now: SimTime,
}Fields§
§state: &'a CombatState§buf: &'a DenseBuffer§query: SpellModifierQuery§target: Option<EnemyIdx>§now: SimTimeImplementations§
Source§impl SpellModifierContext<'_>
impl SpellModifierContext<'_>
fn apply(&self, stacks: f64, effect: &BuffEffect, mods: &mut SpellScopedMods)
fn apply_damage( &self, stacks: f64, effect: &BuffEffect, mods: &mut SpellScopedMods, )
Sourcefn apply_incoming_damage(
&self,
stacks: f64,
effect: &BuffEffect,
mods: &mut SpellScopedMods,
)
fn apply_incoming_damage( &self, stacks: f64, effect: &BuffEffect, mods: &mut SpellScopedMods, )
Applies an aura-87 (ModDamageTakenPercent) effect carried by an aura on the victim.
The player-aura form of the same effect is the defensive half, owned by incoming_damage.
Only a debuff on the target scales outgoing damage, so this runs over the target-aura walk.
fn apply_target( &self, stacks: f64, effect: &BuffEffect, mods: &mut SpellScopedMods, )
fn apply_critical( &self, stacks: f64, effect: &BuffEffect, mods: &mut SpellScopedMods, )
fn apply_effect_point_damage_modifiers( &self, active: &[ActiveEffectPointModifier], mods: &mut SpellScopedMods, )
Auto Trait Implementations§
impl<'a> Freeze for SpellModifierContext<'a>
impl<'a> !RefUnwindSafe for SpellModifierContext<'a>
impl<'a> !Send for SpellModifierContext<'a>
impl<'a> !Sync for SpellModifierContext<'a>
impl<'a> Unpin for SpellModifierContext<'a>
impl<'a> UnsafeUnpin for SpellModifierContext<'a>
impl<'a> !UnwindSafe for SpellModifierContext<'a>
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
§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