mangosR2/mangos — comment on commit df8c6173a2fd5434cacb9a0a18580d31c06ee183
File:  line 0
By Reamer:

player cannot cast summon on invisible for his point.

Then we have an typo

if (m_caster->GetTypeId() != TYPEID_PLAYER)

But I think you miss understand the problem. As i wrote: some mobs spawn positions are calculate right in FillTargetMap(), we should use this points and NOT make a new point with CheckPathAccurate(...)