pub struct DamageReplication {
pub fraction: f64,
pub effect: DamageEffectRef,
pub source: DamageSource,
pub source_spells: &'static [u32],
pub include_magic: bool,
pub include_indirect: bool,
pub include_primary: bool,
pub max_targets: u8,
pub reduced_targets: u8,
}Expand description
One active-aura rule that copies resolved impact damage to selected targets.
Fields§
§fraction: f64§effect: DamageEffectRef§source: DamageSource§source_spells: &'static [u32]Restrict eligible source impacts by reported spell id; empty accepts every spell.
include_magic: boolWhether non-physical source impacts can be copied.
include_indirect: boolWhether AoE and explicitly-targeted child impacts can be copied.
include_primary: boolWhether the resolved source target also receives a copied hit.
max_targets: u8Maximum copied targets; zero means unlimited.
reduced_targets: u8Soft-cap target count; zero disables target-count reduction.
Trait Implementations§
Source§impl Clone for DamageReplication
impl Clone for DamageReplication
Source§fn clone(&self) -> DamageReplication
fn clone(&self) -> DamageReplication
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 DamageReplication
impl Debug for DamageReplication
Source§impl PartialEq for DamageReplication
impl PartialEq for DamageReplication
impl Copy for DamageReplication
impl StructuralPartialEq for DamageReplication
Auto Trait Implementations§
impl Freeze for DamageReplication
impl RefUnwindSafe for DamageReplication
impl Send for DamageReplication
impl Sync for DamageReplication
impl Unpin for DamageReplication
impl UnsafeUnpin for DamageReplication
impl UnwindSafe for DamageReplication
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