if (sprite.getAttack().getEntityId() == aa.getEntityId() && sprite.getAttack().getTargetId() == aa.getTargetId()) {
if (sprite.getEntityId() == aa.getEntityId() && sprite.getTargetId() == aa.getTargetId()) {
    public void addAttack(AttackAction aa) {        for (final Enumeration i = attackSprites.elements(); i.hasMoreElements();) {            final AttackSprite sprite = (AttackSprite)i.nextElement();                        // can we just add this attack to an existing one?            if (sprite.getAttack().getEntityId() == aa.getEntityId()                 && sprite.getAttack().getTargetId() == aa.getTargetId()) {                // use existing attack, but add this weapon                if (aa instanceof WeaponAttackAction) {                    sprite.addWeapon((WeaponAttackAction)aa);                }                return;            }        }                // no re-use possible, add a new one        attackSprites.addElement(new AttackSprite(aa));    }