execute store result score @s black_flash_emulator_damage_scale run attribute @s attack_damage get
execute store result score @s black_flash_emulator_random run random value 1..200

execute if score @s black_flash_emulator_damage_scale > @s black_flash_emulator_random run function kiwi3:relics/black_flash_emulator/black_flash_emulator_fx
advancement revoke @s only kiwi3:black_flash_emulator_player_hurt_entity