Option 1: Add the invulnerability check to collision, too.
Option 2: Make unit have ```public boolean canBeHurtBy(Entity e);```  Have player implement it.  It will take bombs and aother units into account.