Skip to content

Commit

Permalink
ホーリー 弾の挙動を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
NePonpon committed Apr 9, 2024
1 parent a21f6f4 commit 1d94700
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/skill/functions/act/white_mage/holy/act0.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ execute if score _ Level matches 1 run data modify storage skill: Damage set fro
execute if score _ Level matches 2 run data modify storage skill: Damage set from storage skill: Data.WhiteMage[{Name:"ホーリー",Level:2}].Damage
function skill:damage/add/skill/magic
#投射物を召喚
execute anchored eyes run summon arrow ^ ^ ^0.5 {Tags:[Skill,Holy,NativeTask,FlyingRequired,KillInGround],damage:1,Color:16646019}
execute anchored eyes run summon arrow ^ ^ ^0.5 {Tags:[Skill,Holy,NativeTask,FlyingRequired,KillInGround,IgnoreReflection],damage:1,Color:16646019}
execute as @e[tag=Holy,tag=!Initialized,distance=..3] positioned 0.0 0.0 0.0 positioned ^ ^ ^1.55 run function calc:throw_projectile/
#ダメージを保存
execute as @e[tag=Holy,tag=!Initialized,distance=..3] run function skill:damage/save
Expand Down
14 changes: 14 additions & 0 deletions data/skill/functions/act/white_mage/holy/re_aim.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

## ホーリーリエイム

# タイマー再設定
scoreboard players set @s Interval 5

# ターゲット捕捉
execute as @e[distance=..15,tag=Enemy,limit=1,sort=nearest] run tag @s add Target

# 対象にもう一度飛ばす
execute facing entity @e[distance=..15,tag=Target,limit=1] feet positioned 0.0 0.0 0.0 positioned ^ ^0.15 ^0.15 run function calc:throw_projectile/

# ターゲット解放
tag @e[distance=..15,tag=Target,limit=1] remove Target
3 changes: 3 additions & 0 deletions data/skill/functions/act/white_mage/holy/tick.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
### ホーリー飛翔時
##############################

#自動追尾
scoreboard players remove @s Interval 1
execute if score @s Interval matches ..0 if entity @e[distance=..15,tag=Enemy,limit=1,sort=nearest] run function skill:act/white_mage/holy/re_aim
#ダメージをロード
function skill:damage/load
#ダメージ付与
Expand Down

0 comments on commit 1d94700

Please sign in to comment.