mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Return self-harm
This commit is contained in:
parent
d9e2d501cd
commit
5e6007db03
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user