[12630] Totem are immune to their own spell workaround fix

More info on old repos -> https://github.com/mangos-one/server-old/commit/bd31a09d7cd402100bd035b0eafce92e520b693b

Fix cmangos/issues#68 (but need to be backported)
[12631] Restore nix build after [12628]

Thank to @dsavineau for pointing