/**
* Handle a push attack
*/
private void resolvePushAttack(PhysicalResult pr, int lastEntityId) {
final PushAttackAction paa = (PushAttackAction) pr.aaa;
final Entity ae = game.getEntity(paa.getEntityId());
// PLEASE NOTE: buildings are *never* the target of a "push".
final Entity te = game.getEntity(paa.getTargetId());
// get roll and ToHitData from the PhysicalResult
int roll = pr.roll;
final ToHitData toHit = pr.toHit;
Report r;
// was this push resolved earlier?
if (pr.pushBackResolved) {
return;
}
// don't try this one again
pr.pushBackResolved = true;
if (lastEntityId != paa.getEntityId()) {
// who is making the attack
r = new Report(4005);
r.subject = ae.getId();
r.addDesc(ae);
addReport(r);