Oh, woops. I thought you meant to literally change the routine. Sorry about that.
https://www.thebuddyforum.com/threads/guide-to-writing-combat-routines.294351/ Or use one of the other community-created ones.
Not to mention the first line would return true only if you can't cast it...
Why are you changing this? The default code will cast it every time it's able. Your change would cause it to never cast.
Separate names with a comma.