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:wither 1 10
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 tellraw @s ["",{"text":"","color":"red"},{"text":"Your shield protects you from most of the projectile's power!","color":"yellow","italic":"true"}]
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 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=RedPart] run tellraw @s ["",{"text":"","color":"red"},{"text":"Your shield only protects you from half of the projectile's extreme power!","color":"red","italic":"true"}]




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



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 ~


