What I'm trying to do is simply this:
/execute @e[type=Fireball] ~ ~ ~ scoreboard players set @a[score_mage_min=1] Cooldown 15
And applying it only to players with mage score of 1 in a 2 block radius. So I found out that I had to make something like this:
/execute @e[type=Fireball] ~ ~ ~ scoreboard players set @a[score_mage_min=1,r=2] Cooldown 15
However it doesn't work, and I cannot realize why.
@p
and target the closest player?