execute at @s run execute if entity @e[distance=..3,type=pufferfish,tag=CadPuffer,tag=PufferPull] run tag @s add PullMe
execute at @s run execute if entity @e[distance=..3,type=pufferfish,tag=CadPuffer,tag=ChargePuffer] run execute if entity @e[distance=..3,type=armor_stand,tag=BluePart] run effect give @s minecraft:instant_damage 1 0
#execute at @s run execute if entity @e[distance=..3,type=pufferfish,tag=CadPuffer,tag=ChargePuffer] run execute if entity @e[distance=..3,type=armor_stand,tag=BluePart] run say hi
execute at @s run execute if entity @e[distance=..3,type=pufferfish,tag=CadPuffer,tag=ChargePuffer] run execute if entity @e[distance=..3,type=armor_stand,tag=RedPart] run effect give @s minecraft:instant_damage 1 1
#execute at @s run execute if entity @e[distance=..3,type=pufferfish,tag=CadPuffer,tag=ChargePuffer] run execute if entity @e[distance=..3,type=armor_stand,tag=RedPart] run say hi2



execute at @s run execute if entity @e[distance=..3,type=pufferfish,tag=CadPuffer,tag=ChargePuffer] run execute as @e[type=armor_stand,tag=ChargeProj,distance=..3,sort=nearest,limit=1] run function zzzzdonotuse:cadeyrn/attacks/chargeslash/hitplayer

effect clear @s[tag=PullMe] poison
effect give @s[tag=PullMe] minecraft:instant_damage 1 0
execute at @s run execute at @e[distance=..3,type=pufferfish,tag=CadPuffer,tag=PufferPull] run tag @e[distance=..2,sort=nearest,type=armor_stand,tag=CadChainPull] add StopMoveCad

execute at @s run tp @e[distance=..3,type=pufferfish,tag=CadPuffer,tag=PufferPull,limit=1,sort=nearest] ~ ~-500 ~
#execute at @s run tp @e[distance=..3,type=pufferfish,tag=CadPuffer,tag=ChargePuffer,limit=1,sort=nearest] ~ ~-500 ~