[z1983] Improve targeting for spells with TARGET_TOTEM_* targets

(based on commit b6db6c7)

Signed-off-by: Nighoo <nighoo@gmail.com>

(based on commit [s1575] - 5e4382b)