If the missile hits the starship, then we verify if the defender starship had a shield on the part that was hit. The defender’s AI will set the shield on the weakest part 80% of the time, and 10%-10% on one of the other parts. That way if the attacker wants to target the weakest part 100% of the time, he will only succeed on hitting the intended part just 50% of the time. If the starship had a shield on that part, then the starship would only suffer 50% of the firing power damage on that part.