From 5e6007db0365ea84711804e7b7817f1b6f58ebae Mon Sep 17 00:00:00 2001 From: juliancoffee Date: Sat, 31 Jul 2021 01:32:29 +0300 Subject: [PATCH] Return self-harm --- common/src/comp/player.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/comp/player.rs b/common/src/comp/player.rs index c2666ef11c..183e2dc21d 100644 --- a/common/src/comp/player.rs +++ b/common/src/comp/player.rs @@ -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.