# World Boss — Kill Announcement (macro)
# Called with storage evercraft:bosses active (boss_name, boss_color)
# @s = the killing player

# §5 staged headline (static — boss name from storage). ⚔ symmetric → mirrored.
$data modify storage evercraft:notify stage.c set value [{text:"⚔ ",color:"gold"},{text:"$(boss_name)",color:"$(boss_color)",bold:true},{text:" Slain!",color:"yellow",bold:true},{text:" ⚔",color:"gold"}]
scoreboard players set #ndur ec.temp 50
execute as @a run function evercraft:util/notify/emit
# §5b direct render — names the actor (killing player @s). Bypasses queue (selector resolves once).
execute as @s run function evercraft:util/notify/whoami
data modify storage evercraft:notify stage.c set value [{text:"Final blow by ",color:"gray"},{text:"",color:"yellow"}]
data modify storage evercraft:notify stage.c[1].text set from storage evercraft:notify named.who
scoreboard players set #ndur ec.temp 50
execute as @s run execute as @a run scoreboard players set #nttl ec.temp 600
execute as @s run execute as @a run function evercraft:util/notify/emit_keep
# Seasonal defeat-flavor line removed 2026-06-02 (Joseph anti-spam): the "Slain!" headline +
# "Final blow by" line are the death announcement — the seasonal third frame piled on.
