Fix spell target and cast type Closes #17623 (cherry picked from commit 10ac7a06de)
10ac7a06de
hotfixes