mangos-one/server — comment on commit bd31a09d7cd402100bd035b0eafce92e520b693b
File: src/game/Totem.cpp line 195
By vovk:

I dont know how mangos works with spell family masks in case if it will be 0x00000006000, so i wrote two checks. For instance, such merege works properly in case mutilate for each hand. I think Vladimir knows better, so maybe you can write IsFitToFamilyMask(UI64LIT(0x00000006000)).
As Nighoo says, this check must be before line 202, because case SPELL_EFFECT_HEAL: -> Healing Straem Totem & case SPELL_EFFECT_ENERGIZE: -> Mana totem. So function will return true & close before it gets your 228 line.

VladimirMangos, about spell names. They wrote in comment in line 190 before the check ;)