Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

サヨナラ発動時にバフエフェクトを付与 #714

Merged
merged 10 commits into from
Feb 21, 2025
Merged
2 changes: 2 additions & 0 deletions data/player/functions/rise/.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ execute if entity @s[tag=HasRestoreItems,tag=!Raise] in area:control_area run fu
execute if entity @s[tag=HasRestoreItems,tag=Raise] run function skill:act/common/restore_item/restore/cancel
### レイズ処理
execute if entity @s[tag=Raise] at @s run function skill:act/white_mage/araise/raise_check
### サヨナラ処理
execute if entity @s[tag=Sayonara] run function skill:act/ninja/sayonara/rise

## フラグリセット
scoreboard players reset @s Hunger
1 change: 1 addition & 0 deletions data/skill/functions/act/ninja/sayonara/death.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function makeup:skill/act/ninja/sayonara/death

###レイズ付与
execute if score @s MP matches 100.. run tag @s add Raise
execute if score @s MP matches 100.. run tag @s add Sayonara

### ダメージ
execute if score _ Level matches 1 run data modify storage skill: Damage set from storage skill: Data.Ninja[{Name:"サヨナラ",Level:1}].Damage
Expand Down
7 changes: 7 additions & 0 deletions data/skill/functions/act/ninja/sayonara/rise.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> skill:act/ninja/sayonara/rise
# @within player:rise/
###生き返り後バフエフェクト処理

effect give @s minecraft:strength 30 9
effect give @s minecraft:resistance 5 4
tag @s remove Sayonara