Skip to content

Commit f000b97

Browse files
committed
[Artifact 1098] 在りし日の鏡片がIsDoT:trueの際に発動しないように
1 parent 53c3c3e commit f000b97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Asset/data/asset/functions/artifact/1098.mirror_piece_of_bygone_days/trigger/2.check_condition.mcfunction

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@
1010
function asset:artifact/common/check_condition/hotbar
1111
# 他にアイテム等確認する場合はここに書く
1212

13+
# IsDoT:trueならCanUsedを削除
14+
execute if entity @s[tag=CanUsed] if data storage asset:context Attack{IsDoT:true} run tag @s remove CanUsed
15+
1316
# 確率でCanUsedを削除
14-
execute unless predicate lib:random_pass_per/20 run tag @s remove CanUsed
17+
execute if entity @s[tag=CanUsed] if predicate lib:random_pass_per/20 run tag @s remove CanUsed
1518

1619
# CanUsedタグをチェックして3.main.mcfunctionを実行する
1720
execute if entity @s[tag=CanUsed] run function asset:artifact/1098.mirror_piece_of_bygone_days/trigger/3.main

0 commit comments

Comments
 (0)