Procházet zdrojové kódy

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

LTCatt před 5 roky
rodič
revize
bfac18e2b4
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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 ..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