rigidbody.addforceexplosion only tagged objects?

Hi I have this function , once the player hits the fire button it creates a force that is relative the position of the player with the TAG “Player” , I have baddys or bad guys , who need to be affected by the explosion physics who have the TAG " Baddy " I have no clue but this function should work fine… but the player is still affected by the explosion force i have not a clue why? Helped would be much appreciated thank you :slight_smile:

//Mind blast function
var radius = 5.0;
var power = 10.0;
function MindBlast () {

// Applies an explosion force to all nearby rigidbodies
var explosionPos : Vector3 = transform.position;
var colliders : Collider = Physics.OverlapSphere (explosionPos, radius);

for (var hit : Collider in colliders) {

    //Here the colliders with tag PhysAffected will be affected by the force
    if (!hit && hit.collider.tag=="Baddy")
        continue;

    if (hit.rigidbody)
        hit.rigidbody.AddExplosionForce(power, explosionPos, radius, 3.0);
}

}

if (!hit && hit.collider.tag==“Baddy”)
continue;

this doesn’t do anything…
try placing the

 if (hit.rigidbody)
        hit.rigidbody.AddExplosionForce(power, explosionPos, radius, 3.0);

inside the first if…