Skip to content

Commit

Permalink
ダメージと同時に殴ると即死するバグを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenCMD committed Jun 2, 2021
1 parent 65845dc commit 310b0f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/score_damage/functions/core/health_subtract.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
# Common
execute if score $SubtractedHealth ScoreDamageCore matches ..0 run kill @s
# 演出
execute if score $SubtractedHealth ScoreDamageCore matches 1.. if entity @s[type=#score_damage:undead] run effect give @s instant_health 1 30 true
execute if score $SubtractedHealth ScoreDamageCore matches 1.. if entity @s[type=!#score_damage:undead] if score $Resistance ScoreDamageCore matches ..4 run effect give @s instant_damage 1 30 true
execute if score $SubtractedHealth ScoreDamageCore matches 1.. if entity @s[type=#score_damage:undead] run effect give @s instant_health 1 31 true
execute if score $SubtractedHealth ScoreDamageCore matches 1.. if entity @s[type=!#score_damage:undead] if score $Resistance ScoreDamageCore matches ..4 run effect give @s instant_damage 1 31 true
execute if score $SubtractedHealth ScoreDamageCore matches 1.. if entity @s[type=!#score_damage:undead] if score $Resistance ScoreDamageCore matches 5.. run effect give @s instant_damage 1 0 true
execute if score $DisableParticle ScoreDamageCore matches 0 at @s run function score_damage:core/damage_indicator
# リセット
Expand Down

0 comments on commit 310b0f4

Please sign in to comment.