diff --git a/TheSkyBlessing/data/api/functions/damage/core/attack.mcfunction b/TheSkyBlessing/data/api/functions/damage/core/attack.mcfunction index bc3bef748e..8e155e09d6 100644 --- a/TheSkyBlessing/data/api/functions/damage/core/attack.mcfunction +++ b/TheSkyBlessing/data/api/functions/damage/core/attack.mcfunction @@ -5,6 +5,7 @@ # @within function # api:damage/ # api:damage/core/attack_to_forward_target/ + #declare tag 1574used # 計算に必要な値を取得 function api:damage/core/get_status/ @@ -12,6 +13,8 @@ function api:damage/core/calc/ # ダメージの補正 execute if data storage api: Argument{BypassModifier:false} store result storage api: Damage double 0.0001 run scoreboard players get $Damage Temporary +#1574sword_for_knight + execute if entity @s[type=player,tag= 1574used] store result storage api: Damage double 0.00002 run scoreboard players get $Damage Temporary execute if data storage api: Argument{BypassModifier:false} run function api:damage/core/modify_damage.m {Side:"Defense"} execute if data storage api: Argument{BypassModifier:false} if entity @s[type=!player,tag=!Enemy.Boss] if score $Metric Temporary matches ..99 run function metric:damage/normal.m {Condition:"Resist"} execute if data storage api: Argument{BypassModifier:false} if entity @s[type=!player,tag=!Enemy.Boss] if score $Metric Temporary matches 100 run function metric:damage/normal.m {Condition:"Normal"}