Skip to content

Commit

Permalink
セイクリッドピラー 代償ダメージ 追加
Browse files Browse the repository at this point in the history
  • Loading branch information
NePonpon committed Apr 16, 2024
1 parent 6162772 commit a23a909
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ scoreboard players operation _ SpecialAttack += _ Calc
execute if score _ SpecialAttack matches ..0 run function makeup:skill/act/white_mage/sacred_pillar/failure
execute if score _ SpecialAttack matches 1.. run summon minecraft:area_effect_cloud ~ ~ ~ {Tags:[Skill,SacredPillar,NativeTask],Duration:1}
execute if score _ SpecialAttack matches 1.. as @e[tag=SacredPillar,tag=!Initialized,limit=1,distance=..0.01] run function skill:act/white_mage/sacred_pillar/success
execute if score _ SpecialAttack matches 1.. run function skill:act/white_mage/sacred_pillar/player_damage

#HP回復
effect give @s minecraft:instant_health 1 20 true
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# 代償ダメージ
execute store result score _ Calc run attribute @s minecraft:generic.max_health get 25
execute store result score _ _ run data get entity @s AbsorptionAmount 25
scoreboard players operation _ Calc += _ _

data modify storage score_damage: Argument set value {Damage:6,BypassArmor:true,BypassResistance:true,DeathCause:'[{"translate":"聖域を生み出すために%1$sはチリとなった","with":[{"selector":"@s"}]}]'}
execute store result storage score_damage: Argument.Damage double 0.01 run scoreboard players get _ Calc

function score_damage:api/attack

0 comments on commit a23a909

Please sign in to comment.