Follow this thread and this site to understand the topic, or you don't need to.
I decided to not use Unit - Replace or the variable, because they seem troublesome and cause leaks although that can be solved with custom script. So I used spell Bear Form instead, and I made several spells based on...