EntityAction ea = i.nextElement();
if (ea instanceof WeaponAttackAction) {
WeaponAttackAction waa = (WeaponAttackAction) ea;
Entity ae = game.getEntity(waa.getEntityId());
Mounted m = ae.getEquipment(waa.getWeaponId());
Weapon w = (Weapon) m.getType();
AttackHandler ah = w.fire(waa, game, this);
if (ah != null) {
game.addAttack(ah);
}
}
}