if (turret_validate_target(this, this.enemy, this.target_validate_flags) <= 0)
{
this.enemy = NULL;
+ if(turret_select_target(this) == this.realowner) return false;
this.target_validate_time = time + 0.5;
do_target_scan = 1;
}
if (etarget)
{
te_csqc_lightningarc(from.origin, etarget.origin);
- Damage(etarget, actor, actor, damage, DEATH_TURRET_TESLA.m_id, DMG_NOWEP, etarget.origin, '0 0 0');
+ if (etarget != actor.realowner)
+ Damage(etarget, actor, actor, damage, DEATH_TURRET_TESLA.m_id, DMG_NOWEP, etarget.origin, '0 0 0');
etarget.railgunhit = true;
IL_PUSH(g_railgunhit, etarget);
}