effect give @s[tag=SlowFallSpell2,tag=K,tag=!SlowfallReset] minecraft:slow_falling 60 0
tellraw @s[tag=SlowFallSpell2,tag=!SlowfallReset] ["",{"text":"Slowfall has been activated!","color":"green"}]
tellraw @s[tag=SlowFallSpell2,tag=SlowfallReset] ["",{"text":"You have already used this spell today - You may use it again tomorrow.","color":"yellow"}]

#handles the extra slowfall charges from the upgrade
tag @s[tag=SlowFallSpell2,tag=K,tag=!SlowfallReset] add SlowfallReset
tag @s[tag=SlowFallUpgrade2,tag=SlowFallSpell2,tag=K,tag=!SlowfallReset,tag=SlowfallCharge1,tag=!SlowfallCharge2] remove SlowfallReset
tellraw @s[tag=SlowFallUpgrade2,tag=SlowFallSpell2,tag=K,tag=!SlowfallReset,tag=SlowfallCharge1,tag=!SlowfallCharge2] ["",{"text":"Slowfall charges left: 2","color":"yellow"}]
tag @s[tag=SlowFallUpgrade2,tag=SlowFallSpell2,tag=K,tag=!SlowfallReset,tag=SlowfallCharge1,tag=!SlowfallCharge2] add SlowfallCharge2

tag @s[tag=SlowFallUpgrade2,tag=SlowFallSpell2,tag=K,tag=SlowfallReset,tag=!SlowfallCharge1] remove SlowfallReset
tellraw @s[tag=SlowFallUpgrade2,tag=SlowFallSpell2,tag=K,tag=!SlowfallReset,tag=!SlowfallCharge1] ["",{"text":"Slowfall charges left: 1","color":"yellow"}]
tag @s[tag=SlowFallUpgrade2,tag=SlowFallSpell2,tag=K,tag=!SlowfallReset,tag=!SlowfallCharge1] add SlowfallCharge1





scoreboard players set @s KyuSpells 0