Return self-harm

This commit is contained in:
juliancoffee 2021-07-31 01:32:29 +03:00
parent d9e2d501cd
commit 5e6007db03

View File

@ -42,9 +42,9 @@ impl Player {
///
/// Simple as tea, if they don't want the tea, don't make them drink the
/// tea.
/// You can make tea for yourself though.
pub fn allow_harm(&self, other: &Player) -> bool {
// TODO: discuss if we want to keep self-harm
self.battle_mode.allow_harm(other.battle_mode)
self.battle_mode.allow_harm(other.battle_mode) || self.uuid == other.uuid
}
/// Inverse of `allow_harm`. Read its doc to learn more.