fix damage

This commit is contained in:
Robin Appelman 2023-03-16 22:46:52 +01:00
commit 838c3a0dd9
4 changed files with 17 additions and 3 deletions

View file

@ -18,7 +18,8 @@ pub struct ShotHitEvent<'a> {
#[derive(Debug, Event)]
pub struct DamageEvent<'a> {
#[event(name = "against")]
pub target: Option<RawSubject<'a>>,
#[event(default)]
pub target: RawSubject<'a>,
pub damage: Option<NonZeroU32>,
#[event(name = "realdamage")]
pub real_damage: Option<NonZeroU32>,