more edge case handling

This commit is contained in:
Robin Appelman 2023-03-16 21:44:41 +01:00
commit f1213a5664
5 changed files with 15 additions and 9 deletions

View file

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