[z1892] Fix spell targeting for pet spells with target-type (0,0)

Also some style improvements

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(cleaned version of c74981a)

(based on commit [s1465] - 25a366f)