if (hasvictim) {
if ((victim != this->shared_from_this()) && !victim->dead && (victim->aitype != passivetype) &&
(victim->aitype != searchtype) && (aitype != passivetype) &&
if (hasvictim) {
if ((victim != this->shared_from_this()) && !victim->dead && (victim->aitype != passivetype) &&
(victim->aitype != searchtype) && (aitype != passivetype) &&