A "phase 2" mechanic for a boss enemy

Functions work fine here when run manually (summons at player as intended?), but when my boss enemy reaches 40 health nothing happens MC version 1.21.5

the intention is to make it summon three guardians around it once it reaches this HP threshold

Continue to help post