mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-12 23:14:42 +00:00
no damage if dead
This commit is contained in:
parent
9319f7e7bd
commit
a30f89fc50
1 changed files with 2 additions and 0 deletions
|
|
@ -2208,6 +2208,8 @@ class SessionData(
|
||||||
// auto kick players damaging spectators
|
// auto kick players damaging spectators
|
||||||
if (obj.spectator && obj != player) {
|
if (obj.spectator && obj != player) {
|
||||||
administrativeKick(player)
|
administrativeKick(player)
|
||||||
|
} else if (!player.isAlive) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
obj.Actor ! Vitality.Damage(func)
|
obj.Actor ! Vitality.Damage(func)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue