mangos/mangos — comment on commit a7554a3363cfd77f427b73a78a5cd2fc5bb3f03f
File:  line 0
By Shauren:

as @VladimirMangos said, map pointer is set before loading creature_addon which is all you need to select the difficulty (IsInWorld check is not needed in spell ctor)