fix: check if teammate is dead instead of downed player

This commit is contained in:
Octol1ttle 2024-03-03 16:42:31 +05:00
parent 34ea071e5f
commit 3b499b9f5c
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF

View file

@ -15,7 +15,7 @@ public class KnockdownsUtils {
continue;
}
IKnockableDown knockable = (IKnockableDown) teammate;
if (!knockable.is_KnockedDown() && !player.isDead()) {
if (!knockable.is_KnockedDown() && !teammate.isDead()) {
return false;
}
}