make the targets allowed of the stun skill "not ancients" and make the unit an ancient
although you will have to set for every other spell "targets allowed - ancient", but you can give them a spell immunity
Can the ancient's be stunned? (The Night Elf Building Ancients, right?)