2
0
HerobrineXia 6 жил өмнө
parent
commit
849bb5b484

+ 1 - 1
data/mini/functions/hotpm/game/damage_dealt.mcfunction

@@ -1,5 +1,5 @@
 # 如果是土豆持有者在热土豆游戏中打到人,才执行下一步
-execute if entity @s[tag=pm_holding] if entity @a[tag=pm_damage_taken,tag=!pm_holding] at @s run function mini:hotpm/game/damage_dealt2
+execute if entity @s[tag=pm_holding] if entity @a[tag=pm_damage_taken,tag=!pm_holding] at @s run function mini:hotpm/game/transfer_potato
 
 # 结束伤害判断
 tag @a remove pm_damage_dealt

+ 1 - 1
data/mini/functions/hotpm/game/damage_dealt2.mcfunction → data/mini/functions/hotpm/game/transfer_potato.mcfunction

@@ -6,4 +6,4 @@ function lib:sounds/hit
 function mini:hotpm/game/pm_lost
 tellraw @s ["",{"text":">> ","color":"green","bold":true},"你把炸弹扔到了 ",{"selector":"@p[tag=pm_damage_taken,tag=!pm_damage_dealt]","color":"green"}," 的头上!"]
 tellraw @p[tag=pm_damage_taken,tag=!pm_damage_dealt] ["",{"text":">> ","color":"red","bold":true},{"selector":"@s","color":"red"}," 把炸弹扔到了你的头上!"]
-execute as @p[tag=pm_damage_taken,tag=!pm_damage_dealt] run function mini:hotpm/game/pm_get
+execute as @p[tag=pm_damage_taken,tag=!pm_holding] run function mini:hotpm/game/pm_get