Ver Fonte

修复土豆分裂 Bug

LTCatt há 6 anos atrás
pai
commit
bca0971e6c

+ 4 - 0
data/mini/functions/hotpm/damage_dealt.mcfunction

@@ -3,3 +3,7 @@ advancement revoke @s only mini:hotpm/damage_dealt
 
 # 如果是土豆持有者在热土豆游戏中打到人,才执行下一步
 execute as @s[tag=pm_hoding] at @s if score $state mem matches 5 if score $mini_type mem matches 3 run function mini:hotpm/damage_dealt2
+
+# 结束伤害判断
+tag @a remove pm_damage_dealt
+tag @a remove pm_damage_taken

+ 0 - 2
data/mini/functions/hotpm/damage_dealt2.mcfunction

@@ -7,5 +7,3 @@ playsound minecraft:entity.arrow.hit_player ambient @s ~ ~ ~ 1 1 1
 function mini:hotpm/pm_lost
 execute as @a[tag=pm_damage_taken] run function mini:hotpm/pm_get
 tellraw @a [{"text":">> ","color":"gold","bold":true},{"selector":"@s","color":"yellow","bold":false},{"text":" 将土豆拍在了 ","color":"white","bold":false},{"selector":"@a[tag=pm_damage_taken]","color":"yellow","bold":false},{"text":" 的脸上!","color":"white","bold":false}]
-tag @a remove pm_damage_dealt
-tag @a remove pm_damage_taken