This commit is contained in:
CortexCore
2023-09-01 14:33:54 +08:00
parent 4fadd3a530
commit 8ef5c7ec0a
451 changed files with 1048940 additions and 2028 deletions

View File

@@ -44,7 +44,7 @@ namespace BITFALL.Melee
foreach (var x in colliders.Where(x=>x.GetComponent<IDamagable>() is not null))
{
var damageable = x.GetComponent<IDamagable>();
if (damaged.Contains(damageable.Entity))
if (damaged.Contains(damageable.Entity) || damageable.Entity.Id == command.PlayerId)
{
continue;
}