Code, please. Otherwise it's unclear how you wrote the trigger and what the army has to do with granting spells 😅
when you place a hero without an army in the editor, the console says he has no army.
and in the code I just added what you wrote...
when i do
my code
end
sleep (1)