Skip to content

Commit

Permalink
🧑‍💻 装備数のフラグを取得
Browse files Browse the repository at this point in the history
  • Loading branch information
haiiro2gou committed Nov 17, 2024
1 parent 2c11c24 commit d2d1300
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

# イベントデータ取得
data modify storage asset:context Attack set from storage asset:artifact Events[-1]
# 処理対象の神器の重複数を取得する
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
# 攻撃先を取得し、Victim を付与する
data modify storage asset:artifact AttackTargets set from storage asset:context Attack.To
execute if data storage asset:artifact AttackTargets[0] run function asset_manager:artifact/triggers/event/attack/add_tag_each_victim
Expand All @@ -19,6 +21,7 @@

# リセット
data remove storage asset:context Attack
data remove storage asset:context Count
data remove storage asset:artifact AttackTargets
data remove storage asset:artifact Events[-1]
tag @e[type=#lib:living,type=!player,tag=Victim] remove Victim
Expand Down

0 comments on commit d2d1300

Please sign in to comment.