It was copied from https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Spells/Spell.cpp#L1077