Просмотр исходного кода

如果只有两个玩家则不自然回血

LTCatt 5 лет назад
Родитель
Сommit
bfac18e2b4
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      data/mini/functions/ass/tick20.mcfunction

+ 2 - 2
data/mini/functions/ass/tick20.mcfunction

@@ -9,5 +9,5 @@ execute if score $countdown mem matches 1 as @a at @s run function lib:sounds/dr
 execute if score $countdown mem matches ..0 run effect give @a[team=playing] wither 60 1 true
 
 # 回复生命值
-execute if score $countdown mem matches 1.. if score $foursec mem matches 1 run effect give @a[team=playing] regeneration 1 10 true
-execute if score $countdown mem matches 1.. if score $foursec mem matches 1 run schedule function mini:ass/game/clear_effect 1t replace
+execute if score $countdown mem matches 1.. if score $player_alive mem matches 3.. if score $foursec mem matches 1 if score $foursec mem matches 1 run effect give @a[team=playing] regeneration 1 10 true
+execute if score $countdown mem matches 1.. if score $player_alive mem matches 3.. if score $foursec mem matches 1 run schedule function mini:ass/game/clear_effect 1t replace