I am not confusing anything, I am talking about the few lines just above this check
```
if (!pet)
{
    player->GetClosePoint(x, y, z, player->GetObjectSize());
    player->SummonPet(0, x, y, z, player->GetOrientation(), SUMMON_PET, 0); // this line exactly
}
```

The summoning is done here - what I'm against is attempting to do that during CheckCast (which you did not do but placed a TODO)