if ((target instanceof Entity) && ((Entity)target).isStealthActive() ) { return new ToHitData(ToHitData.IMPOSSIBLE, "Can't target Mech with active stealth armor as secondary target"); }
    private static ToHitData getSecondaryTargetMod(Game game, Entity attacker, Targetable target) {    boolean curInFrontArc = isInArc(attacker.getPosition(), attacker.getSecondaryFacing(), target.getPosition(), ARC_FORWARD);    int primaryTarget = Entity.NONE;        for (Enumeration i = game.getActions(); i.hasMoreElements();) {            Object o = i.nextElement();            if (!(o instanceof WeaponAttackAction)) {                continue;            }            WeaponAttackAction prevAttack = (WeaponAttackAction)o;            if (prevAttack.getEntityId() == attacker.getId()) {                // first front arc target is our primary.                // if first target is non-front, and either a later target or                // the current one is in front, use that instead.                Targetable pte = game.getTarget(prevAttack.getTargetType(), prevAttack.getTargetId());                if (isInArc(attacker.getPosition(), attacker.getSecondaryFacing(), pte.getPosition(), ARC_FORWARD)) {                    primaryTarget = prevAttack.getTargetId();                    break;                } else if (primaryTarget == Entity.NONE && !curInFrontArc) {                    primaryTarget = prevAttack.getTargetId();                }            }        }        if (primaryTarget == Entity.NONE || primaryTarget == target.getTargetId()) {          // current target is primary target          return null; // no modifier        }        // current target is secondary        // Infantry can't attack secondary targets (BMRr, pg. 32).        if (attacker instanceof Infantry) {          return new ToHitData(ToHitData.IMPOSSIBLE, "Can't have multiple targets.");        }        if (curInFrontArc) {      return new ToHitData(1, "secondary target modifier");        } else {      return new ToHitData(2, "secondary target modifier");        }  }