if (!(game.getEntity(aa.getEntityId()).isActive())
if (!game.getEntity(aa.getEntityId()).isActive()
    private void resolvePhysicalAttacks() {        //Physical phase header        addReport(new Report(4000, Report.PUBLIC));        // add any pending charges        for (Enumeration i = game.getCharges(); i.hasMoreElements();) {            game.addAction((EntityAction)i.nextElement());        }        game.resetCharges();        // remove any duplicate attack declarations        cleanupPhysicalAttacks();        // loop thru received attack actions        for (Enumeration i = game.getActions(); i.hasMoreElements();) {            Object o = i.nextElement();            // verify that the attacker is still active            AttackAction aa = (AttackAction)o;            if (!(game.getEntity(aa.getEntityId()).isActive())            && !(o instanceof DfaAttackAction)) {                continue;            }            AbstractAttackAction aaa = (AbstractAttackAction)o;            // do searchlights immediately            if (aaa instanceof SearchlightAttackAction) {                SearchlightAttackAction saa = (SearchlightAttackAction)aaa;                addReport(                                      saa.resolveAction(game));            } else {                physicalResults.addElement(preTreatPhysicalAttack(aaa));            }        }        int cen = Entity.NONE;        for (Enumeration i = physicalResults.elements(); i.hasMoreElements();) {            PhysicalResult pr = (PhysicalResult)i.nextElement();            resolvePhysicalAttack(pr, cen);            cen = pr.aaa.getEntityId();        }        physicalResults.removeAllElements();    }