execute if entity @e[tag=tempest_1] run execute if entity @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run execute as @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run function cartographer_core:helper/deal_damage/3
execute if entity @e[tag=tempest_1] run execute if entity @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run tag @s remove tempest_1

execute if entity @e[tag=tempest_2] run execute if entity @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run execute as @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run function cartographer_core:helper/deal_damage/6
execute if entity @e[tag=tempest_2] run execute if entity @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run tag @s remove tempest_2

execute if entity @e[tag=tempest_3] run execute if entity @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run execute as @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run function cartographer_core:helper/deal_damage/9
execute if entity @e[tag=tempest_3] run execute if entity @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run tag @s remove tempest_3

execute if entity @e[tag=tempest_4] run execute if entity @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run execute as @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run function cartographer_core:helper/deal_damage/12
execute if entity @e[tag=tempest_4] run execute if entity @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run tag @s remove tempest_4

execute if entity @e[tag=tempest_5] run execute if entity @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run execute as @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run function cartographer_core:helper/deal_damage/15
execute if entity @e[tag=tempest_5] run execute if entity @e[type=#cartographer_core:hostile,limit=1,distance=..5,nbt=!{HurtTime:0s}] run tag @s remove tempest_5