When i added the "make attacker damage victim by 6" effect my script starts looping without any loops
code_language.skript:
on damage:
attacker is a player
{slampackage.%attacker%.souls} is greater than or equal to 20
{slampackage.%attacker%.toggle.rarity.gem} is "true"
if {divine.immolation.cooldown.%attacker%} is not set:
set {divine.immolation.cooldown.%attacker%} to 0
if lore of attacker's tool contains "&cDivine Immolation":
if {divine.immolation.cooldown.%attacker%} is less than or equal to 0:
play 10 mob spawner flames at victim's location
execute console command "/playsound mob.enderdragon.growl %attacker% 1 1 1 100"
execute console command "/playsound mob.enderdragon.growl %victim% 1 1 1 100"
make attacker damage victim by 6
subtract 20 from {slampackage.%attacker%.souls}
set the name of {item} to "&c&lSoul Gem [&6&l%{slampackage.%attacker%.souls}%&c&l]"
set {divine.immolation.cooldown.%attacker%} to 1
wait 1 second
set {divine.immolation.cooldown.%attacker%} to 0
stop