}
protected void handleEntityDamage(Entity entityTarget,
Vector<Report> vPhaseReport, Building bldg, int hits, int nCluster,
int nDamPerHit, int bldgAbsorbs) {
HitData hit = entityTarget.rollHitLocation(toHit.getHitTable(), toHit
.getSideTable(), waa.getAimedLocation(), waa.getAimingMode());
// If a leg attacks hit a leg that isn't
// there, then hit the other leg.
if (entityTarget.getInternal(hit) <= 0) {
if (hit.getLocation() == Mech.LOC_RLEG) {
hit = new HitData(Mech.LOC_LLEG);
} else {
hit = new HitData(Mech.LOC_RLEG);
}
}
hit.setGeneralDamageType(generalDamageType);
int damage = 4;
if (ae instanceof BattleArmor)
damage += ((BattleArmor) ae).getVibroClaws();
// ASSUMPTION: buildings CAN'T absorb *this* damage.
vPhaseReport.addAll(server.damageEntity(entityTarget, hit, damage,
false, damageType, false, false, throughFront, underWater));
Report.addNewline(vPhaseReport);
// Do criticals.
vPhaseReport.addAll(server.criticalEntity(entityTarget, hit
.getLocation(), 0));
}